Skip to main content

matvec

Function matvec 

Source
pub fn matvec(
    operator: &(impl LinearOperator + ?Sized),
    input: &[Complex64],
    output: &mut [Complex64],
    coefficient: Complex64,
    overwrite: bool,
) -> Result<()>
Expand description

Shared scaled matrix-vector adapter corresponding to QuSpin’s low-level matvec helper. When overwrite is false the result is accumulated into the existing output buffer.