Skip to content
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

Investigate Fixed Size Arrays #32

Closed
JaredCrean2 opened this issue Nov 22, 2015 · 2 comments
Closed

Investigate Fixed Size Arrays #32

JaredCrean2 opened this issue Nov 22, 2015 · 2 comments

Comments

@JaredCrean2
Copy link
Contributor

JaredCrean2 commented Nov 22, 2015

There has been some talk in the Julia issues about a fixed size (ie. compile time sized) array, which could potentially be much faster than regular arrays (whose sizes are not known until runtime) for small sizes. Flux jacobians come to mind as one place where this would be beneficial, although there may be others as well.

See discussion here: https://goo.gl/ERGCVZ
and here: https://goo.gl/YYlP1P

@JaredCrean2
Copy link
Contributor Author

Currently, these arrays are heap allocated, which reduced their utility for these arrays. What we really need is a static array equivalent to the C code double arr[4], so this issue is a low priority until that gets figured out.

@JaredCrean2
Copy link
Contributor Author

Looked into this, currently the length of the array cannot be a variable, which makes things difficult for functions that need to work in 2D and 3D.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant