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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§