Trait linfa_linalg::cholesky::SolveCInplace
source · pub trait SolveCInplace<B> {
// Required method
fn solvec_inplace<'a>(&mut self, b: &'a mut B) -> Result<&'a mut B>;
// Provided method
fn solvec_into(&mut self, b: B) -> Result<B> { ... }
}
Expand description
Solves a symmetric positive definite system
Required Methods§
sourcefn solvec_inplace<'a>(&mut self, b: &'a mut B) -> Result<&'a mut B>
fn solvec_inplace<'a>(&mut self, b: &'a mut B) -> Result<&'a mut B>
Solves self * x = b
, where self
is symmetric positive definite, modifying b
inplace.
As a side effect, self
is used to calculate an in-place Cholesky decomposition.
Provided Methods§
sourcefn solvec_into(&mut self, b: B) -> Result<B>
fn solvec_into(&mut self, b: B) -> Result<B>
Solves self * x = b
, where self
is symmetric positive definite, consuming b
.
As a side effect, self
is used to calculate an in-place Cholesky decomposition.