Skip to main content

LinearOperator

Trait LinearOperator 

Source
pub trait LinearOperator<T> {
    // Required methods
    fn domain(&self) -> usize;
    fn codomain(&self) -> usize;
    fn apply(&self, input: &Vector<T>) -> Result<Vector<T>, LinearError>;
}

Required Methods§

Source

fn domain(&self) -> usize

Source

fn codomain(&self) -> usize

Source

fn apply(&self, input: &Vector<T>) -> Result<Vector<T>, LinearError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§