Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions docs/user_guide/operators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,12 @@ registered from numpy are located in ``graphblas.binary.numpy``.
Monoids
-------

Monoids extend the concept of a binary operator to require a single domain for all inputs and
the output. Monoids are also associative, so the order of the inputs does not matter. And finally,
monoids have a default identity such that ``A op identity == A``.
Monoids extend the concept of a binary operator to require a single domain for all inputs and the output.
Monoids are also associative so the order of operations does not matter
(for example, ``(a + b) + c == a + (b + c)``).
GraphBLAS primarily uses *commutative monoids* (for example, ``a + b == b + a``),
and all standard monoids in python-graphblas commute.
And finally, monoids have a default identity such that ``A op identity == A``.

Monoids are commonly for reductions, collapsing all elements down to a single value.

Expand Down