ndarray_linalg::tridiagonal

Trait SolveTridiagonalInplace

source
pub trait SolveTridiagonalInplace<A: Scalar, D: Dimension> {
    // Required methods
    fn solve_tridiagonal_inplace<'a, S: DataMut<Elem = A>>(
        &self,
        b: &'a mut ArrayBase<S, D>,
    ) -> Result<&'a mut ArrayBase<S, D>>;
    fn solve_t_tridiagonal_inplace<'a, S: DataMut<Elem = A>>(
        &self,
        b: &'a mut ArrayBase<S, D>,
    ) -> Result<&'a mut ArrayBase<S, D>>;
    fn solve_h_tridiagonal_inplace<'a, S: DataMut<Elem = A>>(
        &self,
        b: &'a mut ArrayBase<S, D>,
    ) -> Result<&'a mut ArrayBase<S, D>>;
}

Required Methods§

source

fn solve_tridiagonal_inplace<'a, S: DataMut<Elem = A>>( &self, b: &'a mut ArrayBase<S, D>, ) -> Result<&'a mut ArrayBase<S, D>>

Solves a system of linear equations A * x = b tridiagonal matrix A, where A is self, b is the argument, and x is the successful result. The value of x is also assigned to the argument.

source

fn solve_t_tridiagonal_inplace<'a, S: DataMut<Elem = A>>( &self, b: &'a mut ArrayBase<S, D>, ) -> Result<&'a mut ArrayBase<S, D>>

Solves a system of linear equations A^T * x = b tridiagonal matrix A, where A is self, b is the argument, and x is the successful result. The value of x is also assigned to the argument.

source

fn solve_h_tridiagonal_inplace<'a, S: DataMut<Elem = A>>( &self, b: &'a mut ArrayBase<S, D>, ) -> Result<&'a mut ArrayBase<S, D>>

Solves a system of linear equations A^H * x = b tridiagonal matrix A, where A is self, b is the argument, and x is the successful result. The value of x is also assigned to the argument.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<A, S> SolveTridiagonalInplace<A, Dim<[usize; 2]>> for ArrayBase<S, Ix2>
where A: Scalar + Lapack, S: Data<Elem = A>,

source§

fn solve_tridiagonal_inplace<'a, Sb>( &self, rhs: &'a mut ArrayBase<Sb, Ix2>, ) -> Result<&'a mut ArrayBase<Sb, Ix2>>
where Sb: DataMut<Elem = A>,

source§

fn solve_t_tridiagonal_inplace<'a, Sb>( &self, rhs: &'a mut ArrayBase<Sb, Ix2>, ) -> Result<&'a mut ArrayBase<Sb, Ix2>>
where Sb: DataMut<Elem = A>,

source§

fn solve_h_tridiagonal_inplace<'a, Sb>( &self, rhs: &'a mut ArrayBase<Sb, Ix2>, ) -> Result<&'a mut ArrayBase<Sb, Ix2>>
where Sb: DataMut<Elem = A>,

Implementors§