-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Just like StaticArrays.jl
has the nice SA[...]
constructor, it should be possible to implement some easier-to-type HybridArray
constructors. My suggestions would be a function HybridArray(n1,n2,...)
which returns the type given by the arguments: either static if argument is an Integer
, or dynamic otherwise (with another suggestion being to use either -
or :
as a shortcut for dynamic dimension). For example, HybridArray(2,:)
would be a simpler alias for HybridArray{Tuple{2,StaticArrays.Dynamic()}}
. (this is probably quite simple to code).
Another possibility which comes to mind would be to use cartesian product, so that, say, Vector*SVector{3}
is computed as HybridArray{Tuple{StaticArrays.Dynamic(),3}}
.
DNF2
Metadata
Metadata
Assignees
Labels
No labels