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§

source

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§

source

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.

Implementations on Foreign Types§

source§

impl<A: NdFloat, Si: DataMut<Elem = A>, So: DataMut<Elem = A>> SolveCInplace<ArrayBase<So, Dim<[usize; 2]>>> for ArrayBase<Si, Ix2>

source§

fn solvec_inplace<'a>( &mut self, b: &'a mut ArrayBase<So, Ix2>, ) -> Result<&'a mut ArrayBase<So, Ix2>>

Implementors§