Skip to content

Error in documentation #1316

@ufechner7

Description

@ufechner7

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions