pygraphblas icon indicating copy to clipboard operation
pygraphblas copied to clipboard

Using lib.* operators in Matrix.reduce_*

Open marci543 opened this issue 4 years ago • 1 comments

Matrix.reduce_vector() cannot be used with lib.GxB_*_MONOID. The problem might be around this line: https://github.com/michelp/pygraphblas/blob/7465ef6fcc77c9901869b70ddf1d77a86570c336/pygraphblas/matrix.py#L598

It would be also good to have a version that supports the BinaryOp variant of reduce_vector.

marci543 avatar Jun 19 '20 13:06 marci543

Hmm, i'll check it out, but meanwhile you can so something like vector_reduce(FP32.PLUS_MONOID) agreed a bout the BinaryOp variant.

michelp avatar Jun 21 '20 17:06 michelp