Template Function GraphBLAS::MxM(const Matrix&, const Matrix&, Matrix&)

Function Documentation

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

Computes the matrix-matrix multiplication of A and B and adds it to C where the add operation is that of the specified Semiring (i.e. C(i,j) = SemiRing::add(C(i,j), (A*B)(i,j))). The default Semiring is the ArithmeticSemiring.

Parameters:
  • A

  • B

  • C