Template Function GraphBLAS::eWiseBinOp

Function Documentation

template<class SemiRing, class Matrix, typename L>
Matrix GraphBLAS::eWiseBinOp(const Matrix &A, const Matrix &B, L binOp)

Computes binOp(A(i,j), B(i,j)) for all i,j element-wise. Note that the dimensions of A and B must coincide and that the zero must be the same.

Parameters:
  • A

  • B

  • binOp

Returns:

The resulting matrix.