You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Perhaps this a feature for a higher level package. We have that in our Grid
types in Meshes.jl for example.
Em qui., 18 de jan. de 2024 09:11, Tianyi Pu ***@***.***>
escreveu:
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.
—
Reply to this email directly, view it on GitHub
<#26>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZQW3MNGX3KR2R2WNB3EXLYPDKMDAVCNFSM6AAAAABB72TCFWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA4DONZUGUYDGNA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
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:
InfiniteArrays
). This is more straightforward on the surface but are prone to infinite loops at broadcast-like operations.checkbounds
needs to be overloaded.The text was updated successfully, but these errors were encountered: