Closed
Description
julia> float(SVector(0))
1-element MVector{1,Float64}:
0.0
This is because it is calling base/float.jl
, which calls convert(AbstractArray, ...)
which calls similar
, I think(?), but in this case it seems more useful to return an SVector
?
Or is there a better way to promote an SVector
to a float-based type, e.g. from Complex{Int}
to Complex{Float}
?