1
0
forked from M-Labs/nac3
nac3/nac3core/irrt/irrt
David Mak fadadd7505 [core] codegen/ndarray: Reimplement np_array()
Based on 8f0084ac: 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]]`.

However, currently only `np_array(<input>, copy=False)` and `np_array
(<input>, copy=True)` are supported. In NumPy, copy could be false,
true, or None. Right now, NAC3's `np_array(<input>, copy=False)` behaves
like NumPy's `np.array(<input>, copy=None)`.
2025-01-03 13:58:47 +08:00
..
ndarray [core] codegen/ndarray: Reimplement np_array() 2025-01-03 13:58:47 +08:00
cslice.hpp [core] irrt: Update some IRRT implementation 2024-11-21 14:26:58 +08:00
debug.hpp core/irrt: add exceptions and debug utils 2024-08-27 22:55:22 +08:00
exception.hpp [core] irrt: Update some IRRT implementation 2024-11-21 14:26:58 +08:00
int_types.hpp [core] irrt: rename NDIndex to NDIndexInt 2024-12-13 15:23:31 +08:00
list.hpp [core] codegen/ndarray: Reimplement np_array() 2025-01-03 13:58:47 +08:00
math_util.hpp core/irrt: split into headers 2024-08-27 22:55:22 +08:00
math.hpp [core] irrt: Minor reformat 2025-01-03 13:26:51 +08:00
ndarray.hpp [core] codegen/ndarray: Use IRRT for size() and indexing operations 2024-12-30 16:58:33 +08:00
range.hpp [core] codegen: Implement Slice{Type,Value}, RustSlice 2024-12-13 15:23:31 +08:00
slice.hpp [core] codegen: Implement Slice{Type,Value}, RustSlice 2024-12-13 15:23:31 +08:00
string.hpp [core] irrt: Minor reformat 2025-01-03 13:26:51 +08:00