-
Notifications
You must be signed in to change notification settings - Fork 31
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
Generalize BlockedUnitRange
to element types besides Int
#335
Comments
Yes! I will say The way |
Overall Yes, I also noticed some issues with Perhaps it warrants having both An |
Ha I’m also interested in rep theory! I made a package NumericalRepresentationTheory.jl. Planning on writing something up for spectral methods for PDEs invariant to discrete symmetry groups, which also groups things by blocks. Just saw your at flat iron! I’ve been meaning to visit Dan Fortunato, it would be great to chat about computational rep theory when I come. Or let me know if you are in London |
Oh cool! Would be great to meet up at Flatiron or London. Let me know if you are visiting. |
I will make a more narrow PR just generalizing |
As of BlockArrays v0.16.39,
BlockedUnitRange
is hardcoded to only have an element type of typeInt
: https://github.com/JuliaArrays/BlockArrays.jl/blob/v0.16.39/src/blockaxis.jl#L50.Would you be open to generalizing that to any integer type?
The
UnitRange
type in Julia allows any subtype ofReal
(https://github.com/JuliaLang/julia/blob/v1.10.2/base/range.jl#L400), I imagine allowing floating point element types adds quite a bit of complexity to the code, but supporting general integer types shouldn't be too hard to support.OneTo
supports subtypes ofInteger
(https://github.com/JuliaLang/julia/blob/v1.10.2/base/range.jl#L449).I hit this in the wild, where I want to use
BlockedUnitRange
with an element type that is a custom integer type, but the current code is too restrictive so I have to define my own type. It would of course be more convenient to just use the built-in type.The text was updated successfully, but these errors were encountered: