-
Notifications
You must be signed in to change notification settings - Fork 152
Closed
Description
Hi!
When computing the SVD of a static matrix, we see some allocations:
julia> using StaticArrays, BenchmarkTools
julia> S = @SMatrix rand(3, 3);
julia> @btime StaticArrays.svd($S)
1.333 μs (8 allocations: 2.48 KiB)which is probably caused because the algorithm just converts the input to Matrix and call the svd in Base.
The problem here is that svd is used to compute pinv that is somewhat very used when inverting matrices for embedded Kalman filters.
I am pursing to embed a full satellite attitude control algorithm written entirely in Julia. However, I must avoid all allocations. In this specific case, I have not yet found a workaround to avoid allocations. Can anyone help me?
Metadata
Metadata
Assignees
Labels
No labels