-
Notifications
You must be signed in to change notification settings - Fork 152
Closed
Labels
featurefeatures and feature requestsfeatures and feature requestsgood first issueIssue which is likely easy to solveIssue which is likely easy to solveup for grabsImplement me, I'm yours!Implement me, I'm yours!
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}
?
Metadata
Metadata
Assignees
Labels
featurefeatures and feature requestsfeatures and feature requestsgood first issueIssue which is likely easy to solveIssue which is likely easy to solveup for grabsImplement me, I'm yours!Implement me, I'm yours!