Add miscellaneous abstraction
6322b6db90
core: Add ArrayLikeValue
724651d2bb
core: Allow unsized CodeGenerator to be passed to some codegen functions
2665668e21
core: Simplify typed value assertions
9b1c559efb
core: Add gen_for_callback_incrementing
5ecc2a905e
core: Add missing unchecked accessors for NDArrayDimsProxy
derppening
pushed to enhance/issue-149-ndarray/basic-arithmetic-operators at M-Labs/nac3
2024-03-18 16:26:05 +08:00
b43f94c477
core: DO NOT MERGE - Complete assertion for calc_broadcast
7a7ca65f9d
core: Add missing unchecked accessors for NDArrayDimsProxy
c898639a63
core: Revert unpack_ndarray_tvars
1f6e7adc54
core: Add gen_if_callback and gen_if_expr_callback
d38c4f5ea8
core: Implement elementwise binary operators
derppening
pushed to enhance/issue-149-ndarray/basic-arithmetic-operators at M-Labs/nac3
2024-03-14 14:55:40 +08:00
f402e0cc73
core: Implement elementwise binary operators
a1ed5014d4
core: Add handling of ndarrays in gen_binop_expr
76fcd06162
core: Implement calculations for broadcasting ndarrays
1e71cb818f
core: Extract codegen portion of gen_binop_expr
008a3ffe75
core: Add gen_for_callback_incrementing
derppening
pushed to enhance/issue-149-ndarray/basic-arithmetic-operators at M-Labs/nac3
2024-03-12 15:28:22 +08:00
42fcc0bbfa
core: Implement calculations for broadcasting ndarrays
da5a1dd2de
core: Delegate element arithmetic to gen_binop_expr
derppening
pushed to enhance/issue-149-ndarray/basic-arithmetic-operators at M-Labs/nac3
2024-03-12 00:52:27 +08:00
df789507d9
core: Delegate element arithmetic to gen_binop_expr
f9e23ea1ed
core: Implement elementwise add/sub/mul operators
4ecc6c3d7b
core: Extract codegen portion of gen_binop_expr
5f4806622a
core: Add gen_for_callback_incrementing
79ad50e621
core: Split numpy into codegen and toplevel
derppening
created branch enhance/issue-149-ndarray/basic-arithmetic-operators in M-Labs/nac3
2024-03-12 00:52:27 +08:00
Implement
ndarray.fill
and ndarray.copy
, miscellaneous bugs
We currently only include classes in PRIMITIVE_DEF_IDS
. We can also include def ids for functions when we refactor that into an enum as suggested in #385.
Implement
ndarray.fill
and ndarray.copy
, miscellaneous bugs
Updated to inline match
into one of the arguments.
2edc1de0b6
standalone: Update ndarray.py to output all elements in ndarrays
c3b122acfc
core: Implement `ndarray.copy`
a94927a11d
core: Update __builtin_assume expressions
ebf86cd134
core: Use size_t for accessing array elements
cccd8f2d00
core: Fix ndarray_eye not preserving signness of offset
Implement
ndarray.fill
and ndarray.copy
, miscellaneous bugs
e0d95bb0d8
standalone: Update ndarray.py to output all elements in ndarrays
a0a398ad56
core: Implement `ndarray.copy`
8baeb7b902
standalone: Update ndarray.py to output all elements in ndarrays
30ccefb5e2
core: Implement `ndarray.copy`
583d0792f4
core: Update __builtin_assume expressions
2bf03ba39e
core: Use size_t for accessing array elements
73f53b1852
core: Fix ndarray_eye not preserving signness of offset
2317516cf6
core: Use tvars from ndarray for class definition
77de24ef74
core: Use BTreeMap for type variable mapping
Refactor
PrimitiveDefinitionIds
into an enum