Skip to content

Performance of SMatrix(::StaticMatrix) #356

@tkoolen

Description

@tkoolen
using StaticArrays, BenchmarkTools
m = rand(SMatrix{3, 3})
@btime SMatrix($m)

results in 2.470 μs (33 allocations: 1.94 KiB). This particular use case is not so interesting, but this method also creates an SMatrix from other StaticMatrix types, which is occasionally useful. PR coming.

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