Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance of SMatrix(::StaticMatrix) #356

Closed
tkoolen opened this issue Jan 13, 2018 · 0 comments
Closed

Performance of SMatrix(::StaticMatrix) #356

tkoolen opened this issue Jan 13, 2018 · 0 comments

Comments

@tkoolen
Copy link
Contributor

tkoolen commented Jan 13, 2018

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.

tkoolen added a commit to tkoolen/StaticArrays.jl that referenced this issue Jan 13, 2018
tkoolen added a commit to tkoolen/StaticArrays.jl that referenced this issue Apr 15, 2018
tkoolen added a commit to tkoolen/StaticArrays.jl that referenced this issue Apr 15, 2018
tkoolen added a commit to tkoolen/StaticArrays.jl that referenced this issue May 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant