You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you mix row vectors and elements as arguments in vcat and all the row vectors are at the end, then it fills in the lone elements into full rows, but if any lone element comes after a row vector, then vcat throws a dimension mismatch error. Probably, vcat should either always throw the error or always fill in, regardless of argument order. I couldn't find anything in the documentation for vcat saying what behavior a user should expect in this case.
If you mix row vectors and elements as arguments in
vcat
and all the row vectors are at the end, then it fills in the lone elements into full rows, but if any lone element comes after a row vector, thenvcat
throws a dimension mismatch error. Probably,vcat
should either always throw the error or always fill in, regardless of argument order. I couldn't find anything in the documentation forvcat
saying what behavior a user should expect in this case.vcat("foo", ["bar" "hello" "world"])
outputsbut
vcat(["bar" "hello" "world"], "foo")
throws an error:Above examples used strings, but the same is true with numbers:
vcat(1, 2, [3 4 5], [6 7 8])
outputsbut
vcat([3 4 5], [6 7 8], 9)
throws an error:versioninfo()
outputsI installed Julia via the official generic binaries, as on julialang.org.
The text was updated successfully, but these errors were encountered: