-
Notifications
You must be signed in to change notification settings - Fork 5
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
Smart constructors are transposed #35
Comments
@gilgamec what do you suggest then ? Would it be more convenient for the end user if we force her user to specify everything in column-major order ? |
I think it might be good to support both, tbh. Row / Column-oriented interfaces for all of the smart constructors, that is. |
@gilgamec this should be fixed, please re-open if you think otherwise. |
we're converging upon Array perfection. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was mentioned in #22, but I'll make an Issue for it here. The data provided to the smart constructors
matrix
,cube
, andtensor
is validated (in terms of row and column sizes) in row-major order, but the constructors all flatten the input lists and usemkArray
, which enters the data in the column-major order. This leads to, first, properly arranged rows and columns being invalid:and, second, if the input lists are transposed so they validate OK, the data in the Array doesn't even follow the rows and columns provided:
The text was updated successfully, but these errors were encountered: