[−][src]Function sprs::binop::csmat_binop_same_storage_raw
pub fn csmat_binop_same_storage_raw<N, I, F>(
lhs: CsMatViewI<N, I>,
rhs: CsMatViewI<N, I>,
binop: F,
out_indptr: &mut [I],
out_indices: &mut [I],
out_data: &mut [N]
) -> usize where
N: Num,
I: SpIndex,
F: Fn(&N, &N) -> N,
Raw implementation of scalar binary operation for compressed sparse matrices sharing the same storage. The output arrays are assumed to be preallocated
Returns the nnz count