pub trait LinearOperator {
// Required methods
fn shape(&self) -> (usize, usize);
fn matvec(&self, x: &[f64]) -> Vec<f64>;
fn rmatvec(&self, x: &[f64]) -> Vec<f64>;
}Expand description
A matrix seen only through its products with vectors (SciPy’s LinearOperator).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl LinearOperator for Array2<f64>
impl LinearOperator for Array2<f64>
Implementors§
impl LinearOperator for CscMatrix
impl LinearOperator for CsrMatrix
impl LinearOperator for Ilu
As a preconditioner, M = (L U)⁻¹.
impl LinearOperator for IncompleteCholesky
As a preconditioner, M = (L Lᵀ)⁻¹.