-
-
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
transpose/permutedims with undefined values fails #5448
Comments
I don't really see that this is a bug. If you try to do anything that accesses the data of an uninitialized array, you get an error. Supporting operations like transpose on uninitialized arrays doesn't really make any sense. |
That's reasonable, although it makes me sad, since it means more code from Base needs to be copy/pasted to DataArrays with a few lines changed. |
Before giving up here, would it be better to explain the need to copy code into DataArrays fixing this behavior? |
DataArrays are encoded using |
A Alternatively, for non-bits types, we could require the user to provide a default value for types which don't have one. For the short term, this seems reasonable to me. |
We could add
isdefined
checks, but that kind of sucks, sinceisdefined
isn't inlined (#3440).The text was updated successfully, but these errors were encountered: