Skip to content

Conversation

tkarna
Copy link
Collaborator

@tkarna tkarna commented Nov 11, 2024

  • arange now supports Array API default values
    • sp.arange(0, 4, 1) -> [0, 1, 2, 3] as before
    • sp.arange(0, 4) -> [0, 1, 2, 3]
    • sp.arange(4) -> [0, 1, 2, 3]
    • sp.arange(4, 0) -> []
    • sp.arange(0, 4, -1) -> []
  • Also removes unnecessary all_axes reduction argument in wave and shallow water benchmarks

@tkarna tkarna requested review from fschlimb and AllanZyne November 11, 2024 07:40
@tkarna tkarna force-pushed the arange-convenience branch from 0952df3 to 596d829 Compare November 11, 2024 07:55
Copy link
Contributor

@fschlimb fschlimb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@tkarna tkarna merged commit 6b74a68 into main Nov 18, 2024
2 checks passed
@tkarna tkarna deleted the arange-convenience branch November 18, 2024 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants