Function sprs::binop::csmat_binop_same_storage_raw [−][src]
pub fn csmat_binop_same_storage_raw<N, I, Iptr, F>(
lhs: CsMatViewI<'_, N, I, Iptr>,
rhs: CsMatViewI<'_, N, I, Iptr>,
binop: F,
out_indptr: &mut [Iptr],
out_indices: &mut [I],
out_data: &mut [N]
) -> usize where
N: Zero + PartialEq,
I: SpIndex,
Iptr: 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