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

Function Documentation

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

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 Semiring (i.e. c[i] = SemiRing::add(c[i], (A*v)[i]). The default Semiring is the ArithmeticSemiring.

Parameters:
  • A

  • v

  • c