Skip to content

lazymatrix::MatVec ​

LazyMatrix for Rust · 0.8.1

Source

rust
pub trait MatVec<V>: MatrixShape + MatrixErrorType

Matrix–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>

Source

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>

Source

Apply optional normalization, allowing a backend to center before summation.

The default borrows unscaled inputs and clones coefficients only for scaling.

Implementation of MatVec ​

Source

rust
impl<A: ZarrArray<F>, F: Scalar> MatVec<Vec<F>> for ZarrMatrix<A, F>

Implementation of MatVec ​

Source

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 ​

Source

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 ​

Source

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 ​

Source

rust
impl<M, V, T> MatVec<V> for EagerMatrix<M, T> where M: MatVec<V>

Implementation of MatVec ​

Source

rust
impl<M: MatVec<V>, V> MatVec<V> for SprsCsc<M>

Implementation of MatVec ​

Source

rust
impl<M: MatVec<V>, V> MatVec<V> for SprsCsr<M>

Released under the MIT and Apache 2.0 licenses.