Skip to main content

TimeDependentOperator

Trait TimeDependentOperator 

Source
pub trait TimeDependentOperator: Send + Sync {
    // Required methods
    fn shape(&self) -> (usize, usize);
    fn apply_at(
        &self,
        time: f64,
        input: &[Complex64],
        output: &mut [Complex64],
    ) -> Result<()>;
}
Expand description

Narrow waist for operators whose action depends explicitly on time.

Required Methods§

Source

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

Source

fn apply_at( &self, time: f64, input: &[Complex64], output: &mut [Complex64], ) -> Result<()>

Implementors§