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

Function Documentation

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

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

Parameters:
  • A

  • B

  • C

  • accum