Trait Spmv

Source
pub trait Spmv: Sized {
    // Required method
    fn spmv<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>(
        symmetry: Symmetry,
        alpha: &Self,
        a: &dyn Matrix<Self>,
        x: &V,
        beta: &Self,
        y: &mut W,
    );
}
Expand description

Symmetric packed matrix multiply with vector

A ← αAx + βy

Required Methods§

Source

fn spmv<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( symmetry: Symmetry, alpha: &Self, a: &dyn Matrix<Self>, x: &V, beta: &Self, y: &mut W, )

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Spmv for f32

Source§

fn spmv<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( symmetry: Symmetry, alpha: &f32, a: &dyn Matrix<f32>, x: &V, beta: &f32, y: &mut W, )

Source§

impl Spmv for f64

Source§

fn spmv<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( symmetry: Symmetry, alpha: &f64, a: &dyn Matrix<f64>, x: &V, beta: &f64, y: &mut W, )

Implementors§