Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arrays that are circular in certain dimensions #26

Closed
putianyi889 opened this issue Jan 18, 2024 · 2 comments
Closed

Arrays that are circular in certain dimensions #26

putianyi889 opened this issue Jan 18, 2024 · 2 comments

Comments

@putianyi889
Copy link
Contributor

putianyi889 commented Jan 18, 2024

What I would appreciate is a way to construct a matrix that is circular in the first dimension while restricted in the other dimension (i.e. should be able to throw BoundsError)

There are two ways to achieve this:

  • To add a size property that hard caps the bounds. This would introduce a dependency related to infinite indexing (e.g. InfiniteArrays). This is more straightforward on the surface but are prone to infinite loops at broadcast-like operations.
  • To add a dim property that specifies the circular dimensions. checkbounds needs to be overloaded.
@juliohm
Copy link

juliohm commented Jan 18, 2024 via email

@Vexatos
Copy link
Owner

Vexatos commented Apr 18, 2024

I agree that this should go in a different package that adds bound checks fitting your particular needs.

@Vexatos Vexatos closed this as not planned Won't fix, can't repro, duplicate, stale Apr 18, 2024
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

No branches or pull requests

3 participants