Skip to content

Commit

Permalink
Use fast_X_A_Xt! instead of X_A_Xt! in callbacks.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanaelbosch committed Oct 11, 2023
1 parent 7c08312 commit e6f98fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function manifoldupdate!(cache, residualf; maxiters=100, ϵ₁=1e-25, ϵ₂=1e-1
J = DiffResults.jacobian(result)

mul!(H, J, SolProj)
X_A_Xt!(S, C, H)
fast_X_A_Xt!(S, C, H)

# m_i_new, C_i_new = update(x, Gaussian(z .+ (H * (m - m_i)), S), H)
K = _matmul!(_K2, C.R', _matmul!(_K1, C.R, H' / S))
Expand All @@ -34,7 +34,7 @@ function manifoldupdate!(cache, residualf; maxiters=100, ϵ₁=1e-25, ϵ₂=1e-1
m_i_new = m_tmp .+= m

if (norm(m_i_new .- m_i) < ϵ₁ && norm(z) < ϵ₂) || (i == maxiters)
C_i_new = X_A_Xt!(C_tmp, C, (I - K * H))
C_i_new = fast_X_A_Xt!(C_tmp, C, (I - K * H))
break
end
m_i = m_i_new
Expand Down

0 comments on commit e6f98fa

Please sign in to comment.