-
Notifications
You must be signed in to change notification settings - Fork 152
Open
Description
The docs say, see: https://juliaarrays.github.io/StaticArrays.jl/stable/api/#Mutable-arrays:-MVector,-MMatrix-and-MArray
As a consequence of Julia's internal implementation, these mutable containers
live on the heap, not the stack. Their memory must be allocated and
tracked by the garbage collector.
To the best of my knowledge this is wrong.
Instead I would write:
In Julia, MVectors are generally allocated on the stack when possible, but this is not
a strict guarantee—specific cases, like use in mutable structs or certain compiler
contexts, may result in heap allocation instead.
Metadata
Metadata
Assignees
Labels
No labels