Expand description
sparse matrix binary and ternary operation implementations
Functionsยง
- add
- returns the sum of
lhsandrhs. - add_
assign - computes the sum of
dstandsrcand stores the result indstwithout changing its symbolic structure. - add_
into - computes the sum of
lhsandrhs, storing the result indstwithout changing its symbolic structure. - binary_
op - returns the resulting matrix obtained by applying
fto the elements fromlhsandrhs, skipping entries that are unavailable in both oflhsandrhs. - binary_
op_ assign_ into - returns the resulting matrix obtained by applying
fto the elements fromdstandsrcskipping entries that are unavailable in both of them.
the sparsity patter ofdstis unchanged. - sub
- returns the difference of
lhsandrhs. - sub_
assign - computes the difference of
dstandsrcand stores the result indstwithout changing its symbolic structure. - sub_
into - computes the difference of
lhsandrhs, storing the result indstwithout changing its symbolic structure. - ternary_
op_ assign_ into - 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. - union_
symbolic - returns the sparsity pattern containing the union of those of
lhsandrhs.