from StaticArrays doc, we can “easily” create our own StaticArray
type… unfortunately no example is provided on the doc…
could someone be nice enough to post an example (of immutable type is good enough)? many thanks.
from StaticArrays doc, we can “easily” create our own StaticArray
type… unfortunately no example is provided on the doc…
could someone be nice enough to post an example (of immutable type is good enough)? many thanks.
As the docs mention, you can look at MArray
— ignoring the macro, it is pretty simple.
I think it’s also good to look at SizedArray. I’ve made two StaticArray
types by copying and modifying that linked file.