Skip to main content

ComplexLinearOperator

Trait ComplexLinearOperator 

Source
pub trait ComplexLinearOperator {
    // Required methods
    fn shape(&self) -> (usize, usize);
    fn matvec(&self, x: &[Complex<f64>]) -> Vec<Complex<f64>>;
}
Expand description

A complex linear operator x ↦ A x, for the complex Krylov solvers and as a preconditioner.

Required Methods§

Source

fn shape(&self) -> (usize, usize)

(rows, columns).

Source

fn matvec(&self, x: &[Complex<f64>]) -> Vec<Complex<f64>>

A x.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§