Function sprs::binop::mul_dense_mat_same_ordering
source · pub fn mul_dense_mat_same_ordering<Lhs, Rhs, Res, Alpha, ByProd, I, Iptr, Mat, D>(
lhs: &Mat,
rhs: &ArrayBase<D, Ix2>,
alpha: Alpha
) -> Array<Res, Ix2>where
Lhs: Zero,
Rhs: Zero,
Res: Zero + Clone,
Alpha: Copy + for<'r> Mul<&'r Lhs, Output = ByProd>,
ByProd: for<'r> Mul<&'r Rhs, Output = Res>,
I: SpIndex,
Iptr: SpIndex,
Mat: SpMatView<Lhs, I, Iptr>,
D: Data<Elem = Rhs>,
Expand description
Compute coeff wise alpha * lhs * rhs
with lhs
a sparse matrix,
rhs
a dense matrix, and alpha
a scalar
The matrices must have the same ordering, a CSR
matrix must be
multiplied with a matrix with C
-like ordering, a CSC
matrix
must be multiplied with a matrix with F
-like ordering.