Function sprs::binop::csmat_binop_same_storage_raw
source · pub fn csmat_binop_same_storage_raw<Lhs, Rhs, Res, I, Iptr, F>(
lhs: CsMatViewI<'_, Lhs, I, Iptr>,
rhs: CsMatViewI<'_, Rhs, I, Iptr>,
binop: F,
out_indptr: &mut [Iptr],
out_indices: &mut [I],
out_data: &mut [Res]
) -> usizewhere
Lhs: Zero,
Rhs: Zero,
Res: Zero,
I: SpIndex,
Iptr: SpIndex,
F: Fn(&Lhs, &Rhs) -> Res,
Expand description
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