Commit Graph

14 Commits

Author SHA1 Message Date
lyken 660928bfba
core/ndstrides: implement general ndarray matmul 2024-08-20 23:32:11 +08:00
lyken 6fe17c71e3
core/ndstrides: implement np_transpose() (no axes argument) 2024-08-20 23:31:29 +08:00
lyken 22d9aac930
core/ndstrides: implement np_reshape() 2024-08-20 23:31:28 +08:00
lyken 632f736fac
core/ndstrides: implement np_array()
It also checks for inconsistent dimensions if the input is a list.
e.g., rejecting `[[1.0, 2.0], [3.0]]`. Previously it was a todo of
`np_array()`.
2024-08-20 23:29:45 +08:00
lyken 171283c0bb
core/irrt: add List
Needed for implementing np_array()
2024-08-20 23:29:29 +08:00
lyken aca2305bfb
core/codegen: implement genereal ndarray indexing
`...`, `none` are now also supported.
2024-08-20 23:29:24 +08:00
lyken c20736307d
core/irrt: add Slice and ResolvedSlice
Needed for implementing general ndarray indexing
2024-08-20 23:29:22 +08:00
lyken 5113c12b8b
core/ndstrides: add ndarray iterator 2024-08-20 17:03:51 +08:00
lyken 51740c6c90
core/ndstrides: add basic ndarray utilities 2024-08-20 17:03:51 +08:00
lyken f090b3b4d2
core/ndstrides: define ndarray with strides 2024-08-20 17:03:51 +08:00
lyken 61ecbb4e47
core/irrt/exceptions: allow irrt to raise exceptions 2024-08-20 15:35:47 +08:00
lyken dcd9010dd1
core/irrt: split irrt.cpp into headers 2024-08-20 15:35:47 +08:00
lyken 290e6b97d2
core/irrt: reformat 2024-08-20 15:35:47 +08:00
lyken 9b3790631d
core/irrt: comment build.rs & move irrt to its own dir
To prepare for future IRRT implementations, and to also make cargo
only have to watch a single directory.
2024-08-20 15:35:47 +08:00