Update cholesky.rs

corrected typo ni doc for `xx_rank_one_update`
This commit is contained in:
Nestor Demeure 2019-11-17 13:40:19 +01:00 committed by GitHub
parent 04ebd9254f
commit e848f76aa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -242,10 +242,10 @@ where
Cholesky { chol }
}
/// Given the Cholesky decomposition of a matrix `M`, a scalar `sigma` and a vector `v`,
/// Given the Cholesky decomposition of a matrix `M`, a scalar `sigma` and a vector `x`,
/// performs a rank one update such that we end up with the decomposition of `M + sigma * (x * x.adjoint())`.
///
/// This helper method is calling for by `rank_one_update` but also `insert_column` and `remove_column`
/// This helper method is called by `rank_one_update` but also `insert_column` and `remove_column`
/// where it is used on a square slice of the decomposition
fn xx_rank_one_update<Dm, Sm, Rx, Sx>(chol : &mut Matrix<N, Dm, Dm, Sm>, x: &mut Vector<N, Rx, Sx>, sigma: N::RealField)
where