lazymatrix::MatVec
LazyMatrix for Rust · 0.8.1
rust
pub trait MatVec<V>: MatrixShape + MatrixErrorTypeMatrix–vector product A x, returning a freshly allocated vector of length nrows. Returns the backend error if the product cannot be completed.
Methods
matvec
rust
fn matvec(&self, x: &V) -> Result<V, <Self as MatrixErrorType>::Error>matvec_normalized
rust
fn matvec_normalized<F: lazymatrix::Scalar>(
&self,
x: &V,
centers: Option<&[F]>,
scales: Option<&[F]>
) -> Result<V, <Self as MatrixErrorType>::Error> where V: Clone + lazymatrix::ElemDivAssign<F> + lazymatrix::DotSlice<F> + lazymatrix::SubScalarAssign<F>Apply optional normalization, allowing a backend to center before summation.
The default borrows unscaled inputs and clones coefficients only for scaling.
Implementation of MatVec
rust
impl<A: ZarrArray<F>, F: Scalar> MatVec<Vec<F>> for ZarrMatrix<A, F>Implementation of MatVec
rust
impl<M, F, V> MatVec<V> for WithIntercept<M, F> where F: Scalar, V: VectorOwned<F, Owned = V> + VectorViewMut<F>, M: MatVecInto<V>Implementation of MatVec
rust
impl<M, V, F> MatVec<V> for LazyMatrix<M, F> where F: Scalar, M: MatVec<V>, V: Clone + ElemDivAssign<F> + DotSlice<F> + SubScalarAssign<F>Implementation of MatVec
rust
impl<M, V, F> MatVec<V> for Submatrix<'_, M, F> where M: SubmatrixKernel<F>, F: Scalar, V: VectorOwned<F, Owned = V> + VectorViewMut<F>Implementation of MatVec
rust
impl<M, V, T> MatVec<V> for EagerMatrix<M, T> where M: MatVec<V>Implementation of MatVec
rust
impl<M: MatVec<V>, V> MatVec<V> for SprsCsc<M>Implementation of MatVec
rust
impl<M: MatVec<V>, V> MatVec<V> for SprsCsr<M>
