Function sprs::binop::csmat_binop_dense_raw[][src]

pub fn csmat_binop_dense_raw<'a, N, I, Iptr, F>(
    lhs: CsMatViewI<'a, N, I, Iptr>,
    rhs: ArrayView<'a, N, Ix2>,
    binop: F,
    out: ArrayViewMut<'a, N, Ix2>
) where
    N: 'a + Num,
    I: 'a + SpIndex,
    Iptr: 'a + SpIndex,
    F: Fn(&N, &N) -> N, 

Raw implementation of sparse/dense binary operations with the same ordering

Panics

On dimension mismatch

On storage mismatch. The storage for the matrices must either be lhs = CSR with rhs and out with Axis(1) as the fastest dimension, or lhs = CSC with rhs and out with Axis(0) as the fastest dimension,