-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
MArray
compatibility
#546
MArray
compatibility
#546
Conversation
IMO this is just a bug JuliaArrays/StaticArrays.jl#327 and we shouldn't work around this. |
If we can, we should just give an upstream PR |
looks like SArray tests fail here? |
Ah, right. Maybe we should explicitly cast the type to be |
Similar with element types doesn't exist for MArrays? |
It does, but we cannot do |
|
|
|
|
That doesn't seem to work either... julia> u0 = fill(zero(MVector{2,Float64}), 2); t = 0.1;
julia> similar(u0)
2-element Array{MArray{Tuple{2},Float64,1,2},1}:
#undef
#undef
julia> similar(u0, eltype(eltype(u0)))
2-element Array{Float64,1}:
6.9502444917253e-310
6.9502444933561e-310
julia> similar(u0, typeof(oneunit(eltype(eltype(u0)))/oneunit(t)))
2-element Array{Float64,1}:
6.9501798101687e-310
6.9501798097537e-310 |
This fix is really sketch and fails tests. |
In favor of JuliaArrays/StaticArrays.jl#536 |
There is
because broadcasting an
MArray
results anSArray
.