-
Notifications
You must be signed in to change notification settings - Fork 152
Open
Description
Hi, thank you for your work on this package. I'm new to Julia, so apologies if I'm missing context.
I noticed a possible inconsistency when slicing an SVector
:
v = SVector(1,2,3)
typeof(v[1:2]) # Vector{Int64}
typeof(v[:]) # SVector{3, Int64}
I'd have expected both cases to return an SVector
, since all of them are already statically sized.
Would it make sense to always return an SVector
? Or is there a reason why Vector
is returned in the first case?
Thanks again for maintaining this package!
Metadata
Metadata
Assignees
Labels
No labels