Skip to content

Commit 579c342

Browse files
committed
add docstring
1 parent 89d929c commit 579c342

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/solvers/LevenbergMarquardt.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,14 @@ function initialize_solver!(
208208
return lms
209209
end
210210

211+
"""
212+
default_lm_lin_solve!(sk, JJ, grad_f_c)
213+
214+
Solve the system `JJ \\ grad_f_c` where JJ is (mathematically) a symmetric positive
215+
definite matrix and save the result to `sk`. In case of numerical errors the
216+
`PosDefException` is caught and the default symmetric solver `(Symmetric(JJ) \\ grad_f_c)`
217+
is used.
218+
"""
211219
function default_lm_lin_solve!(sk, JJ, grad_f_c)
212220
try
213221
ldiv!(sk, cholesky(JJ), grad_f_c)

0 commit comments

Comments
 (0)