No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#216
Loading…
Reference in New Issue
No description provided.
Delete Branch "min_max_abs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add support for
min
,max
,abs
functions.For
abs
, previously I thought it would be helpful to make it return unsigned integers, but after checking some more materials, it seems that it is a convention to return signed integers, and most languages like c++/c/java/rust and numpy also returns signed integers. And makingabs
to return unsigned integers would require having different variant names likeabs32
,abs64
andabsfloat
under our type system, so I currently implemented a singleabs
whose return type is the same as its input type.I don't think the boolean case is very useful or meaningful, but it's not a lot of code and cpython does support it...
And thanks for adding comprehensive tests!