David Mak derppening
  • Joined on 2023-08-31
derppening closed issue M-Labs/nac3#277 2024-04-10 15:13:57 +08:00
ndarray comparisons
derppening commented on issue M-Labs/nac3#277 2024-04-10 15:13:55 +08:00
ndarray comparisons

Non-chained comparison operators are in #390.

derppening created pull request M-Labs/nac3#393 2024-04-05 15:50:38 +08:00
Fix several internal errors
derppening pushed to enhance/issue-149-ndarray/operators at M-Labs/nac3 2024-04-05 15:49:18 +08:00
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
Compare 3 commits »
derppening created branch enhance/issue-149-ndarray/operators in M-Labs/nac3 2024-04-05 15:49:18 +08:00
derppening opened issue M-Labs/nac3#392 2024-04-05 15:38:34 +08:00
Chained Comparison Operators for ndarrays
derppening commented on pull request M-Labs/nac3#390 2024-04-03 16:41:29 +08:00
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 for ndarray is implemented either as a u32 or u64 depending on…

derppening pushed to enhance/issue-149-ndarray/operators at M-Labs/nac3 2024-04-03 00:13:41 +08:00
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
Compare 6 commits »
derppening closed issue M-Labs/nac3#391 2024-04-02 17:49:14 +08:00
Collapse all assertions into one fail block
derppening commented on issue M-Labs/nac3#391 2024-04-02 17:49:07 +08:00
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.

derppening pushed to enhance/issue-149-ndarray/operators at M-Labs/nac3 2024-04-02 16:56:58 +08:00
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
Compare 10 commits »
derppening pushed to enhance/issue-149-ndarray/operators at M-Labs/nac3 2024-04-01 17:35:05 +08:00
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
Compare 16 commits »
derppening opened issue M-Labs/nac3#391 2024-03-28 15:53:02 +08:00
Collapse all assertions into one fail block
derppening created pull request M-Labs/nac3#390 2024-03-28 01:12:55 +08:00
WIP: Implement ndarray binary, unary and compare operators
derppening pushed to enhance/issue-149-ndarray/operators at M-Labs/nac3 2024-03-28 01:11:56 +08:00
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
Compare 12 commits »
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/operators at M-Labs/nac3 2024-03-26 19:20:55 +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
Compare 12 commits »
derppening opened issue M-Labs/nac3#389 2024-03-25 10:14:53 +08:00
Make TObj::fields lazy