File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -348,9 +348,10 @@ you may want to define a default constructor (no inputs) that can be called by
348
348
349
349
### Implementing your own types
350
350
351
- You can easily create your own ` StaticArray ` type, by defining both ` size ` on
352
- the type, and linear ` getindex ` (and optionally ` setindex! ` for mutable types
353
- - see ` setindex(::SVector, val, i) ` in * MVector.jl* for an example of how to
351
+ You can easily create your own ` StaticArray ` type, by defining both ` Size ` (on the
352
+ * type* , e.g. ` StaticArrays.Size(::Type{Point3D}) = Size(3) ` ), and linear
353
+ ` getindex ` (and optionally ` setindex! ` for mutable types - see
354
+ ` setindex(::SVector, val, i) ` in * MVector.jl* for an example of how to
354
355
achieve this through pointer manipulation). Your type should define a constructor
355
356
that takes a tuple of the data (and mutable containers may want to define a
356
357
default constructor).
You can’t perform that action at this time.
0 commit comments