Module extendr_api::prelude::sparse::ops
Expand description
Sparse matrix binary and ternary operation implementations.
Functionsยง
- Returns the sum of
lhs
andrhs
. - Computes the sum of
dst
andsrc
and stores the result indst
without changing its symbolic structure. - Computes the sum of
lhs
andrhs
, storing the result indst
without changing its symbolic structure. - Returns the resulting matrix obtained by applying
f
to the elements fromlhs
andrhs
, skipping entries that are unavailable in both oflhs
andrhs
. - Returns the resulting matrix obtained by applying
f
to the elements fromdst
andsrc
skipping entries that are unavailable in both of them.
The sparsity patter ofdst
is unchanged. - Returns the difference of
lhs
andrhs
. - Computes the difference of
dst
andsrc
and stores the result indst
without changing its symbolic structure. - Computes the difference of
lhs
andrhs
, storing the result indst
without changing its symbolic structure. - Returns the resulting matrix obtained by applying
f
to the elements fromdst
,lhs
andrhs
, skipping entries that are unavailable in all ofdst
,lhs
andrhs
.
The sparsity patter ofdst
is unchanged. - Returns the sparsity pattern containing the union of those of
lhs
andrhs
.