Module extendr_api::prelude::sparse::ops

Expand description

Sparse matrix binary and ternary operation implementations.

Functionsยง

  • Returns the sum of lhs and rhs.
  • Computes the sum of dst and src and stores the result in dst without changing its symbolic structure.
  • Computes the sum of lhs and rhs, storing the result in dst without changing its symbolic structure.
  • 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.
  • 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.
  • Returns the difference of lhs and rhs.
  • Computes the difference of dst and src and stores the result in dst without changing its symbolic structure.
  • Computes the difference of lhs and rhs, storing the result in dst without changing its symbolic structure.
  • 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.
  • Returns the sparsity pattern containing the union of those of lhs and rhs.