Skip to content

Commit

Permalink
solve unecessary use of inv function (#12)
Browse files Browse the repository at this point in the history
* solve unecessary use of inv function

* use inv in \Lambda
  • Loading branch information
mrr00b00t committed Nov 1, 2021
1 parent 694cb5f commit 4393499
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/transforms/eigenanalysis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,15 @@ end
function drsproj(λ, V)
Λ = Diagonal(sqrt.(λ))
S = V * inv(Λ)
S, inv(S)
S⁻¹ = Λ * transpose(V)
S, S⁻¹
end

function sdsproj(λ, V)
Λ = Diagonal(sqrt.(λ))
S = V * inv(Λ) * transpose(V)
S, inv(S)
S⁻¹ = V * Λ * transpose(V)
S, S⁻¹
end

function matrices(transform::EigenAnalysis, λ, V)
Expand Down

0 comments on commit 4393499

Please sign in to comment.