StaticArrays: Sub-typing from FieldVector

You want a concrete, parametric type, probably, like:

struct Vec3{T} <: FieldVector{3,T}
  x::T
  y::T
  z::T
end
1 Like