-
Notifications
You must be signed in to change notification settings - Fork 38
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
Use Static.jl to implement elements of Ones and Zeros? #176
Comments
Can't you just use |
I typically will. But julia> vcat(Fill(static(1), 5), Fill(static(1), 5))
10-element Vector{StaticInt{1}}: Speaking of which, explicit support for Static.jl would allow us to specialize things like |
I just think |
Note this issue is basically the same as #104 so I'm closing this |
You were right, I want |
Currently, we have
Using Static.jl, the elements of
Ones
could bestatic(1)
orstatic(1.0)
, which would propagate the fact that the number is static deeper into calculations and could enable better compiler optimizations.Static.jl is a comparatively lightweight dependency on top of FillArrays, load-time impact would probably be minor:
The text was updated successfully, but these errors were encountered: