-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cat
inconsistency with scalars and arrays
#38019
Comments
Coming from #34395, I think the following seem like valid uses of
|
Another bugged case: Edit: it's an infinite loop. Line 206 in 5b2dffa
|
Looks like an issue with 0-dimensional arrays? |
I noticed an inconsistency in the behavior of
cat
when concatenating values with vectors and arrays.It appears that, generally speaking, A)
cat
can concatenate with a scalar whendims
is lower than the dimensionality of the array; B) ifdims
is equal to the dimensionality, it can only concatenate the scalar if the array is extended along only that dimension; and C) ifdims
is greater than the dimensionality of the array, it always fails.The text was updated successfully, but these errors were encountered: