ndstrides: [9] Implement ndarray subscript assignment #519
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Blocks
Depends on
Reference: M-Labs/nac3#519
Loading…
Reference in New Issue
No description provided.
Delete Branch "ndstrides-9-subassign"
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?
Implemented general ndarray subscript assignment with referential integrity.
np_transpose(np_transpose(my_array)[::3])[0, 2:100] = 1.0
andmy_array
would update. This is only possible with ndarray with strides.There is no implementation to handle overlapping at the moment. Things like
have undefined behavior at this moment because the current implementation is a naive
memcpy
from the source to the destination. I think an addition to fix this afterndstrides
is completed should be fine.ScalarOrNDArray
is a utility to deal with implementing ndarray-related logics that deals with both scalars and ndarrays simultaneously.ccc8ce5886
tocea512456a
Rebased.
cea512456a
tod12d62f078
d12d62f078
to594977f909
594977f909
tod3f636fcfa
d3f636fcfa
tod0af58769a
d0af58769a
to5bed394ef7
Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.