Skip to main content

Solve

Trait Solve 

Source
pub trait Solve<T> {
    // Required methods
    fn solve<S: Data<Elem = T>>(
        &self,
        b: &ArrayBase<S, Ix1>,
    ) -> Result<Array1<T>>;
    fn solve_t<S: Data<Elem = T>>(
        &self,
        b: &ArrayBase<S, Ix1>,
    ) -> Result<Array1<T>>;
    fn solve_h<S: Data<Elem = T>>(
        &self,
        b: &ArrayBase<S, Ix1>,
    ) -> Result<Array1<T>>;

    // Provided methods
    fn solve_into(&self, b: Array1<T>) -> Result<Array1<T>> { ... }
    fn solve_t_into(&self, b: Array1<T>) -> Result<Array1<T>> { ... }
    fn solve_h_into(&self, b: Array1<T>) -> Result<Array1<T>> { ... }
}
Expand description

Solves A x = b for square A by LU with partial pivoting.

Required Methods§

Source

fn solve<S: Data<Elem = T>>(&self, b: &ArrayBase<S, Ix1>) -> Result<Array1<T>>

Source

fn solve_t<S: Data<Elem = T>>(&self, b: &ArrayBase<S, Ix1>) -> Result<Array1<T>>

Solves Aᵀ x = b (transpose, without conjugation).

Source

fn solve_h<S: Data<Elem = T>>(&self, b: &ArrayBase<S, Ix1>) -> Result<Array1<T>>

Solves Aᴴ x = b (conjugate transpose).

Provided Methods§

Source

fn solve_into(&self, b: Array1<T>) -> Result<Array1<T>>

As Solve::solve, consuming the right-hand side.

Source

fn solve_t_into(&self, b: Array1<T>) -> Result<Array1<T>>

As Solve::solve_t, consuming the right-hand side.

Source

fn solve_h_into(&self, b: Array1<T>) -> Result<Array1<T>>

As Solve::solve_h, consuming the right-hand side.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: Scalar, S: Data<Elem = T>> Solve<T> for ArrayBase<S, Ix2>

Source§

fn solve<S2: Data<Elem = T>>(&self, b: &ArrayBase<S2, Ix1>) -> Result<Array1<T>>

Source§

fn solve_t<S2: Data<Elem = T>>( &self, b: &ArrayBase<S2, Ix1>, ) -> Result<Array1<T>>

Source§

fn solve_h<S2: Data<Elem = T>>( &self, b: &ArrayBase<S2, Ix1>, ) -> Result<Array1<T>>

Implementors§