Skip to content

lazymatrix::MatTransposeVecScaledInto ​

LazyMatrix for Rust · 0.8.1

Source

rust
pub trait MatTransposeVecScaledInto<X, Y, F>: MatrixShape + MatrixErrorType

Fused transpose product out = alpha * Aᵀ * x + beta * out.

Exact zero alpha skips the product, including any storage reads. Exact zero beta overwrites without reading prior output values. Dimensions are checked even when a coefficient is zero. On an operational error, out may be partial.

Panics ​

Panics unless x has length nrows and out has length ncols.

Methods ​

mat_transpose_vec_scaled_into ​

rust
fn mat_transpose_vec_scaled_into(
    &self,
    alpha: F,
    x: &X,
    beta: F,
    out: &mut Y
) -> Result<(), <Self as MatrixErrorType>::Error>

Source

try_mat_transpose_vec_scaled_normalized_into ​

rust
fn try_mat_transpose_vec_scaled_normalized_into(
    &self,
    _alpha: F,
    _x: &X,
    _beta: F,
    _centers: Option<&[F]>,
    _scales: Option<&[F]>,
    _out: &mut Y
) -> Option<Result<(), <Self as MatrixErrorType>::Error>> where F: lazymatrix::Scalar, X: lazymatrix::VectorView<F>, Y: lazymatrix::VectorViewMut<F>

Source

Try a specialized fused normalized transpose product.

None leaves output untouched. Some obeys the fused product's dimension, zero-coefficient, and error contracts.

Implementation of MatTransposeVecScaledInto ​

Source

rust
impl<A, F, X, Y> MatTransposeVecScaledInto<X, Y, F> for ZarrMatrix<A, F> where A: ZarrArray<F>, F: Scalar, X: VectorView<F>, Y: VectorViewMut<F>

Implementation of MatTransposeVecScaledInto ​

Source

rust
impl<M, F, X, Y> MatTransposeVecScaledInto<X, Y, F> for WithIntercept<M, F> where F: Scalar, X: VectorView<F>, Y: VectorOwned<F> + VectorViewMut<F>, M: MatTransposeVecScaledInto<X, <Y as VectorOwned>::Owned, F>

Implementation of MatTransposeVecScaledInto ​

Source

rust
impl<M, X, Y, F, T> MatTransposeVecScaledInto<X, Y, F> for EagerMatrix<M, T> where M: MatTransposeVecScaledInto<X, Y, F>

Implementation of MatTransposeVecScaledInto ​

Source

rust
impl<M, X, Y, F> MatTransposeVecScaledInto<X, Y, F> for LazyMatrix<M, F> where F: Scalar, X: VectorView<F>, Y: VectorOwned<F> + VectorViewMut<F>, M: MatTransposeVecScaledInto<X, Y, F> + MatTransposeVecScaledInto<X, <Y as VectorOwned>::Owned, F>

Implementation of MatTransposeVecScaledInto ​

Source

rust
impl<M, X, Y, F> MatTransposeVecScaledInto<X, Y, F> for Submatrix<'_, M, F> where M: SubmatrixKernel<F>, F: Scalar, X: VectorView<F>, Y: VectorViewMut<F>

Implementation of MatTransposeVecScaledInto ​

Source

rust
impl<M: MatTransposeVecScaledInto<X, Y, F>, X, Y, F> MatTransposeVecScaledInto<X, Y, F> for SprsCsc<M>

Implementation of MatTransposeVecScaledInto ​

Source

rust
impl<M: MatTransposeVecScaledInto<X, Y, F>, X, Y, F> MatTransposeVecScaledInto<X, Y, F> for SprsCsr<M>

Released under the MIT and Apache 2.0 licenses.