-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Document Base.elsize and requirements for DenseArray subtypes better #36553
Comments
I just released ElasticArrays v1.2.3, it specializes |
Hm, interesting; this is from #36405. In short, it was definitely a bug that SubArray wasn't considering the We definitely need to document |
Ah, I see. So |
It's needed in this case since you subtype |
Ahh, right, thanks. I implemented I'll just rename this to "Document Base.eltype and requirements for DenseArray subtypes" Ok? |
Thanks for the explanations, Matt! |
Note that its not specific to subtypes of |
Update: not a regression, see remarks by Matt below
I'm not sure whether this technically is a regression or not: With Julia v1.5.0-rc1 and v1.6-nightly, some linear algebra breaks on
ElasticArrrays.ElasticArray
sinceBase.elsize
is not defined:When I specialize
Base.elsize
, all is fine:This doesn't happen with Julia v1.4. As to whether it's a change in behavior - maybe I should have defined
Base.elsize
before and just never ran into trouble? On the other hand,Base.elsize
isn't documented, so one probably wouldn't expect to have to specialize it for a custom array type.I'll make a new release of ElasticArrays that defines
Base.eltype
, but I thought I should report this.Tested with
and
The text was updated successfully, but these errors were encountered: