Module ops

Source
Expand description

Arithmetic and generic binary/ternary operations.

Functionsยง

add
Returns the sum of lhs and rhs.
add_assign
Computes the sum of dst and src and stores the result in dst without changing its symbolic structure.
add_into
Computes the sum of lhs and rhs, storing the result in dst without changing its symbolic structure.
binary_op
Returns the resulting matrix obtained by applying f to the elements from lhs and rhs, skipping entries that are unavailable in both of lhs and rhs.
binary_op_assign_into
Returns the resulting matrix obtained by applying f to the elements from dst and src skipping entries that are unavailable in both of them.
The sparsity patter of dst is unchanged.
sub
Returns the difference of lhs and rhs.
sub_assign
Computes the difference of dst and src and stores the result in dst without changing its symbolic structure.
sub_into
Computes the difference of lhs and rhs, storing the result in dst without changing its symbolic structure.
ternary_op_assign_into
Returns the resulting matrix obtained by applying f to the elements from dst, lhs and rhs, skipping entries that are unavailable in all of dst, lhs and rhs.
The sparsity patter of dst is unchanged.
union_symbolic
Returns the sparsity pattern containing the union of those of lhs and rhs.