ndarray: Implement reshaping #125

Closed
opened 2021-01-20 06:34:09 +08:00 by dpn · 0 comments

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.)

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.)
sb10q closed this issue 2022-04-27 10:52:10 +08:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/artiq-zynq#125
There is no content yet.