Skip to content

Commit

Permalink
Clarify semiring use
Browse files Browse the repository at this point in the history
  • Loading branch information
alugowski committed Sep 7, 2023
1 parent 91a06ec commit 345b778
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions matspy/adapters/graphblas_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ def get_spy(self, spy_shape: tuple) -> np.array:
spy = gb.Matrix(float, nrows=spy_shape[0], ncols=spy_shape[1])

# triple product
# spy << gb.semiring.plus_first(left @ self.mat @ right) # appears to be broken
spy << left.mxm(self.mat, op="plus_first").mxm(right, op="plus_first")
spy << left.mxm(self.mat, op=gb.semiring.plus_first).mxm(right, op=gb.semiring.plus_first)

return spy.to_dense(fill_value=0, dtype=spy.dtype)

0 comments on commit 345b778

Please sign in to comment.