-
Notifications
You must be signed in to change notification settings - Fork 152
reinterpret of Arrays of static arrays failed #501
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
Comments
The reinterpret signature changed from 0.6 to 1.0. You can use the following:
Also see #496 for a lengthy discussion on this topic. If you need this to be fast on 1.0 and don't mind relying on internals that will probably silently break your code in 1.1, you can also use the ccall-based unsafe variant from the PR. (there currently is a penalty for the reinterpret on every single access to the resulting object. If you don't rely on mutations and can afford the memory, then you should pull a |
@andyferris It appears that this is a documentation bug. Do we need a docfix before merging some variant of #496? |
Yes - perhaps clearly documenting the current behavior on Julia 1.0 would be the best first step. |
Bump. The old, failing, function |
reinterpret
Arrays of static arrays failed.steps to reproduce:
outputs:
The text was updated successfully, but these errors were encountered: