Template Function GraphBLAS::MxV(const Matrix&, const NetworKit::Vector&, NetworKit::Vector&, F)

Function Documentation

template<class SemiRing = ArithmeticSemiring, typename F, class Matrix>
void GraphBLAS::MxV(const Matrix &A, const NetworKit::Vector &v, NetworKit::Vector &c, F accum)

Computes the matrix-vector product of matrix A and Vector v and adds it to c where the add operation is that of the specified binary function accum (i.e. c[i] = accum(c[i], (A*v)[i]). The default Semiring is the ArithmeticSemiring.

Parameters:
  • A

  • v

  • c