Template Function GraphBLAS::eWiseAdd

Function Documentation

template<class SemiRing = ArithmeticSemiring, class Matrix>
Matrix GraphBLAS::eWiseAdd(const Matrix &A, const Matrix &B)

Computes SemiRing::add(A(i,j), B(i,j)) for all i,j element-wise and returns the resulting matrix. The default Semiring is the ArithmeticSemiring.

Parameters:
  • A

  • B