Function sprs::binop::add_dense_mat_same_ordering[][src]

pub fn add_dense_mat_same_ordering<N, I, Iptr, Mat, D>(
    lhs: &Mat,
    rhs: &ArrayBase<D, Ix2>,
    alpha: N,
    beta: N
) -> Array<N, Ix2> where
    N: Num + Copy,
    I: SpIndex,
    Iptr: SpIndex,
    Mat: SpMatView<N, I, Iptr>,
    D: Data<Elem = N>, 

Compute alpha * lhs + beta * rhs with lhs a sparse matrix and rhs dense and alpha and beta scalars

The matrices must have the same ordering, a CSR matrix must be added with a matrix with C-like ordering, a CSC matrix must be added with a matrix with F-like ordering.