1
0
forked from M-Labs/nac3
Commit Graph

14 Commits

Author SHA1 Message Date
dfb8bf9748 core/ndstrides: fix and rewrite is_c_contiguous 2024-07-31 09:53:15 +08:00
2747869a45 core/ndstrides: implement general ndarray reshaping 2024-07-31 09:53:15 +08:00
bd5cb14d0d core/ndstrides: implement general ndarray basic indexing 2024-07-31 09:53:15 +08:00
4b14609342 core/ndstrides: implement IRRT slice
Needed by ndarray indexing
2024-07-31 09:53:15 +08:00
2211c4d852 core/ndstrides: implement gen_foreach_ndarray_elements & np_{empty,ndarray,zeros,ones,full} 2024-07-31 09:53:15 +08:00
8ae9a4294b core/ndstrides: add basic ndarray IRRT functions 2024-07-31 09:53:15 +08:00
fd3d02bff0 core/ndstrides: add NDArray with strides definition 2024-07-31 09:53:15 +08:00
7502b14d55 core/irrt: add ErrorContext 2024-07-31 09:53:15 +08:00
0477e2acfa core/irrt: comment arrays_match() 2024-07-31 09:53:15 +08:00
bf0dcf325e core/irrt: add cstr_utils 2024-07-31 09:53:15 +08:00
c1369ea5bd core/irrt: introduce irrt testing
`cargo test -F test` would compile `nac3core/irrt/irrt_test.cpp`
targetted to the host machine (it gets to use `std`) and run the
test executable.
2024-07-31 09:52:43 +08:00
ef28138291 core/irrt: split irrt.cpp into headers
To scale IRRT implementations
2024-07-31 09:52:43 +08:00
e4ba5e6411 core/irrt: reformat 2024-07-31 09:52:43 +08:00
3f0e7e28b8 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-07-31 09:52:43 +08:00