Skip to content

Commit

Permalink
Fix clippy complains
Browse files Browse the repository at this point in the history
  • Loading branch information
otaviog committed Dec 24, 2023
1 parent da64fca commit 64cad46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/optim/gaussnewton.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl<const DIM: usize> GaussNewton<DIM> {
let gradient: SVector<f64, DIM> = nalgebra::convert(self.gradient);

Cholesky::<f64, Const<DIM>>::new(hessian)
.and_then(|cholesky| Some(nalgebra::convert(cholesky.solve(&gradient))))
.map(|cholesky| nalgebra::convert(cholesky.solve(&gradient)))
}

/// Adds the values of another optimizer to this one.
Expand Down

0 comments on commit 64cad46

Please sign in to comment.