Skip to content

resize! of HybridArray #64

@judober

Description

@judober

I use HybridArrays as a replacement for a Vector of SMatrices. Now I found the need to resize! the Vector.
This works for Vector of SMatrices but not a HybridArray:

V = [SA[1 2; 3 4], SA[5 6; 7 8]]; 
resize!(V, 3) # adds one entry

H = HybridArray{Tuple{2,2,StaticArrays.Dynamic()}}(randn(2,2,2));
resize!(H, 3) # errors

Is there a way to achieve this with a HybridArray?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions