Skip to main content

LinearOperator

Trait LinearOperator 

Source
pub trait LinearOperator {
    // Required methods
    fn rows(&self) -> usize;
    fn cols(&self) -> usize;
    fn apply(&self, x: &[f64], y: &mut [f64]) -> Result<(), HybitError>;
}

Required Methods§

Source

fn rows(&self) -> usize

Source

fn cols(&self) -> usize

Source

fn apply(&self, x: &[f64], y: &mut [f64]) -> Result<(), HybitError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§