Skip to content

Conversation

@forfudan
Copy link
Collaborator

@forfudan forfudan commented Feb 1, 2025

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

  • Add boundary checks for ndim > 0 at initialization.
  • Add boundary checks for shape[i] > 0 at initialization.
  • Add complete docstrings for all methods of Shape type, e.g., raises, args, returns.

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