Module extendr_api::prelude::sparse::ops
source · Expand description
Sparse matrix binary and ternary operation implementations.
Functions§
- Returns the sum of
lhsandrhs. - Computes the sum of
dstandsrcand stores the result indstwithout changing its symbolic structure. - Computes the sum of
lhsandrhs, storing the result indstwithout changing its symbolic structure. - Returns the resulting matrix obtained by applying
fto the elements fromlhsandrhs, skipping entries that are unavailable in both oflhsandrhs. - Returns the resulting matrix obtained by applying
fto the elements fromdstandsrcskipping entries that are unavailable in both of them.
The sparsity patter ofdstis unchanged. - Returns the difference of
lhsandrhs. - Computes the difference of
dstandsrcand stores the result indstwithout changing its symbolic structure. - Computes the difference of
lhsandrhs, storing the result indstwithout changing its symbolic structure. - Returns the resulting matrix obtained by applying
fto the elements fromdst,lhsandrhs, skipping entries that are unavailable in all ofdst,lhsandrhs.
The sparsity patter ofdstis unchanged. - Returns the sparsity pattern containing the union of those of
lhsandrhs.