Skip to content

Conversation

@forfudan
Copy link
Collaborator

@forfudan forfudan commented Feb 2, 2025

This PR aims to add all necessary boundary checks for NDArrayStrides to ensure safe use.

  • Add boundary checks for ndim > 0 at initialization.
  • Add complete docstrings for all methods of Shape type, e.g., raises, args, returns.
  • Chain calling __init__(shape: NDArrayShape, order: String) for other list-like shape argument.
  • Fix __eq__ method.
  • Add new initialization method to create an uninitialized strides with given length.

@MadAlex1997 MadAlex1997 merged commit 509d3c5 into Mojo-Numerics-and-Algorithms-group:pre-0.6 Feb 2, 2025
2 checks passed
@forfudan forfudan deleted the strides branch February 2, 2025 14:55
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.

2 participants