ndarray: Implement reshaping #278
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#278
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is trivial in principle, but slightly cumbersome to implement in practice if we want to support wildcards (
-1
) for an arbitrary number of dimensions, at least if we need to make the compiler emit the necessary code.(Definitely a solvable issue, but it seems wrong to bake so much logic into the compiler; should probably lower to a runtime function that gets passed a pointer/length pair pointing to the source and target extent tuples.)
Originally posted by @dpn in M-Labs/artiq-zynq#125 (comment)
np_reshape()
is currently inmaster
after PR #478 in commit00236f48bc
.-1
is supported.However,
np_reshape()
copies the entire array.