1
0
forked from M-Labs/nac3
nac3/nac3core/src/codegen
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
..
irrt [core] codegen/ndarray: Reimplement np_array() 2025-01-03 13:58:47 +08:00
types [core] codegen/ndarray: Reimplement np_array() 2025-01-03 13:58:47 +08:00
values [core] codegen/ndarray: Reimplement np_array() 2025-01-03 13:58:47 +08:00
builtin_fns.rs [core] codegen: Refactor len() 2025-01-03 13:58:47 +08:00
concrete_type.rs [meta] Reorganize order of use declarations 2024-10-04 12:52:01 +08:00
expr.rs [core] codegen: Refactor ListType to use derive(StructFields) 2025-01-03 13:58:47 +08:00
extern_fns.rs [meta] Reorganize order of use declarations - Phase 2 2024-10-17 15:57:33 +08:00
generator.rs [core] Minor improvements to IRRT and add missing documentation 2024-12-30 16:51:17 +08:00
llvm_intrinsics.rs [core] Refactor/Remove redundant and unused constructs 2024-12-30 14:13:48 +08:00
mod.rs [core] codegen: Implement Tuple{Type,Value} 2025-01-03 13:58:47 +08:00
numpy.rs [core] codegen/ndarray: Reimplement np_array() 2025-01-03 13:58:47 +08:00
stmt.rs [core] codegen: Refactor ProxyType and ProxyValue 2024-11-19 13:46:25 +08:00
test.rs [core] Refactor/Remove redundant and unused constructs 2024-12-30 14:13:48 +08:00