Expand description
Arithmetic and generic binary/ternary operations.
Functionsยง
- add
- Returns the sum of
lhs
andrhs
. - add_
assign - Computes the sum of
dst
andsrc
and stores the result indst
without changing its symbolic structure. - add_
into - Computes the sum of
lhs
andrhs
, storing the result indst
without changing its symbolic structure. - binary_
op - Returns the resulting matrix obtained by applying
f
to the elements fromlhs
andrhs
, skipping entries that are unavailable in both oflhs
andrhs
. - binary_
op_ assign_ into - 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. - sub
- Returns the difference of
lhs
andrhs
. - sub_
assign - Computes the difference of
dst
andsrc
and stores the result indst
without changing its symbolic structure. - sub_
into - Computes the difference of
lhs
andrhs
, storing the result indst
without changing its symbolic structure. - ternary_
op_ assign_ into - 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. - union_
symbolic - Returns the sparsity pattern containing the union of those of
lhs
andrhs
.