ndstrides: [2] {Any,Tuple,List}Object + Implement np_{zeros,ones,full,empty} and len() #512

Open
lyken wants to merge 9 commits from ndstrides-2-basic into ndstrides-1-model
Collaborator

NOTE: This branch has not been rebased properly yet onto ndstrides-1-model. Additions begin on: core/toplevel/helper: add {extract,create}_ndims. (It has been rebased)

This PR:

  • Adds *Object - Rust structures holding an LLVM value along with its related typechecker types. This is used to organize programming interfaces. Later PRs uses NDArrayObject<'ctx> a lot.
  • Creates irrt/ndarray/basic.hpp, which has all the common basic utilities that implementing ndarray needs.
  • Creates NDIter, a necessary structure for iterating through an ndarray efficiently.
  • Implements np_{zeros,ones,full,empty}.
  • Implements len() and ndarray.
~~NOTE: This branch has not been rebased properly yet onto `ndstrides-1-model`. Additions begin on: `core/toplevel/helper: add {extract,create}_ndims`.~~ (It has been rebased) This PR: - Adds `*Object` - Rust structures holding an LLVM value along with its related typechecker types. This is used to organize programming interfaces. Later PRs uses `NDArrayObject<'ctx>` a lot. - Creates `irrt/ndarray/basic.hpp`, which has all the common basic utilities that implementing ndarray needs. - Creates `NDIter`, a necessary structure for iterating through an ndarray efficiently. - Implements `np_{zeros,ones,full,empty}`. - Implements `len()` and ndarray.
lyken added 18 commits 2024-08-28 13:40:45 +08:00
lyken changed title from ndstrides [2]: `{Any,Tuple,List}Object` + Implement `np_{zeros,ones,full,empty}` and `len()` to ndstrides: [2] `{Any,Tuple,List}Object` + Implement `np_{zeros,ones,full,empty}` and `len()` 2024-08-28 13:41:36 +08:00
lyken added a new dependency 2024-08-28 13:49:00 +08:00
lyken added a new dependency 2024-08-28 13:49:29 +08:00
lyken force-pushed ndstrides-2-basic from ad5afb52c4 to d1c75c7444 2024-08-30 13:48:14 +08:00 Compare
lyken changed target branch from ndstrides to ndstrides-1-model 2024-08-30 13:50:14 +08:00
Author
Collaborator

Rebased.

Rebased.
derppening force-pushed ndstrides-2-basic from d1c75c7444 to 59bea2cd4d 2024-10-04 15:48:06 +08:00 Compare
derppening force-pushed ndstrides-2-basic from 59bea2cd4d to a8928d35e7 2024-10-17 13:44:50 +08:00 Compare
derppening force-pushed ndstrides-2-basic from a8928d35e7 to b25bc20bf5 2024-10-17 16:04:45 +08:00 Compare
derppening force-pushed ndstrides-2-basic from b25bc20bf5 to 9789d229d2 2024-10-17 16:29:17 +08:00 Compare
derppening force-pushed ndstrides-2-basic from 9789d229d2 to 54a842a93f 2024-10-18 14:21:35 +08:00 Compare
This pull request can be merged automatically.
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin ndstrides-2-basic:ndstrides-2-basic
git checkout ndstrides-2-basic
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: M-Labs/nac3#512
No description provided.