Block a user
Fix several internal errors
e614dd4257
core/type_inferencer: Fix location of unary/compare expressions
937a8b9698
core/magic_methods: Fix type of unary ops with primitive types
876ad6c59c
core/type_inferencer: Include location info if inferencer fails
derppening
created branch enhance/issue-149-ndarray/operators in M-Labs/nac3
2024-04-05 15:49:18 +08:00
Chained Comparison Operators for ndarrays
Implement ndarray binary, unary and compare operators
Copied with the conversation in Mattermost:
it's for implicit promotion for const generics. currently, the
ndims
typevar forndarray
is implemented either as au32
oru64
depending on…
a920fe0501
core: Implement elementwise comparison operators
727a1886b3
core: Implement elementwise unary operators
6af13a8261
core: Implement elementwise binary operators
3540d0ab29
core/magic_methods: Add typeof_*op
3a6c53d760
core/toplevel/numpy: Split ndarray type var utilities
Collapse all assertions into one fail block
Collapse all assertions into one fail block
After looking into this, I think the better way forward is to reduce the number of assertion checks when the input is already sanitized, especially with regards to IRRT helper functions.
847d19077e
core: Implement elementwise comparison operators
a1310570d1
core: Implement elementwise unary operators
7ba5bfa33d
core: Implement elementwise binary operators
08ee380512
core/magic_methods: Add typeof_*op
90d95efd5c
core/toplevel/numpy: Split ndarray type var utilities
e69fab866c
core: Implement elementwise comparison operators
03a12f24d6
core: Implement elementwise unary operators
eaf4af21cb
core: Implement elementwise binary operators
46aec66340
core/magic_methods: Add typeof_*op
ad3ddcddeb
core/toplevel/numpy: Split ndarray type var utilities
Collapse all assertions into one fail block
WIP: Implement ndarray binary, unary and compare operators
29ae48faad
core: Implement elementwise comparison operators
d457e6c986
core/codegen/expr: WIP - Split cmpop
5450147007
core: Implement elementwise unary operators
0537e816a5
core/codegen/expr: WIP - Split unaryop
1f0ac6341d
core: Implement elementwise binary operators
derppening
deleted branch enhance/issue-149-ndarray/basic-arithmetic-operators from M-Labs/nac3
2024-03-26 19:21:08 +08:00
derppening
created branch enhance/issue-149-ndarray/operators in M-Labs/nac3
2024-03-26 19:20:55 +08:00
derppening
pushed to enhance/issue-149-ndarray/basic-arithmetic-operators at M-Labs/nac3
2024-03-26 19:20:20 +08:00
1cb9a90825
core: Implement elementwise binary operators
42c482f897
core/magic_methods: Add typeof_*op
1a09ea126d
core/toplevel/numpy: Split ndarray type var utilities
f0c8f88ce3
core: Implement calculations for broadcasting ndarrays
0c3e353a11
core/type_inferencer: Allow both int32 and isize when indexing ndarray