lyken
|
f35fbde837
|
core/ndstrides: implement np_transpose() (no axes argument)
|
2024-08-20 20:05:16 +08:00 |
lyken
|
2a3c4470ca
|
core/ndstrides: implement np_reshape()
|
2024-08-20 20:05:16 +08:00 |
lyken
|
21c1bf26c6
|
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 20:05:16 +08:00 |
lyken
|
f79c66701c
|
core/irrt: add List
Needed for implementing np_array()
|
2024-08-20 20:05:16 +08:00 |
lyken
|
0360c42351
|
core/codegen: implement genereal ndarray indexing
`...`, `none` are now also supported.
|
2024-08-20 20:05:15 +08:00 |
lyken
|
247cc73377
|
core/irrt: rename NDIndex to NDIndexInt
The name `NDIndex` is used in later commits.
|
2024-08-20 17:03:51 +08:00 |
lyken
|
49b5c92f15
|
core/irrt: add Slice and ResolvedSlice
Needed for implementing general ndarray indexing
|
2024-08-20 17:03:51 +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
|
eb1dee81d0
|
core/irrt/exceptions: add debug utils with exceptions
|
2024-08-20 15:35:47 +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 |