Template Function GraphBLAS::columnReduce

Function Documentation

template<class SemiRing = ArithmeticSemiring, class Matrix>
NetworKit::Vector GraphBLAS::columnReduce(const Matrix &matrix)

Computes the column-reduction of the matrix and returns the result as a Vector. That is, the elements of each column are summed up to form the respective entry in the result Vector. The add operator is that of the specified Semiring. The default Semiring is the ArithmeticSemiring.

Parameters:

matrix