-
Notifications
You must be signed in to change notification settings - Fork 45
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
Allow for multi-dimensional arrays in FROM-ARRAY constructor. #105
Conversation
Any number of dimensions are supported, however the input layout MUST be row-major. Input array is now copied.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you add a suitable test? Make sure it really do be like what they think it be.
- Add INPUT-LAYOUT and code to copy arrays in the correct order. - Update all existing references to FROM-ARRAY to reflect changes. - Squash a particularly nasty bug where INV would output would have the wrong layout when input is ROW-MAJOR.
- Add tests for FROM-ARRAY with varying dimensions and layouts
All the outstanding issues (hopefully) have been resolved. As a bonus I squashed a bug caused by |
|
Sorry all, especially @colescott, for the delay in approving. Thanks for the contribution! |
Allows for multi-dimensional arrays as input to
FROM-ARRAY
(Resolves #102)This also adds a new kw arg to
FROM-ARRAY
,INPUT-LAYOUT
which allows for reindexing of input arrays (INPUT-LAYOUT
does not need to be the same asLAYOUT
).As a bonus, fixes a bug that came up while testing this PR caused by
LAPACK-INV
not setting the layout of the tensor toCOLUMN-MAJOR
after fortran touched it.