T
- the type of the elements of the structurepublic interface Semiring<T> extends RinglikeStructure<T>
R is the underlying set; a, b, c are elements of R.
(a + b) + c = a + (b + c)
0 + a = a + 0 = a
a + b = b + a
(a*b)*c = a*(b*c)
1*a = a*1 = a
a*(b + c) = (a*b) + (a*c) = (a + b)*c = (a*c) + (b*c)
Modifier and Type | Method and Description |
---|---|
CommutativeMonoid<T> |
additionStructure()
Returns the grouplike structure representing the addition of elements.
|
Monoid<T> |
multiplicationStructure()
Returns the grouplike structure representing the multiplication of elements.
|
CommutativeMonoid<T> additionStructure()
RinglikeStructure
additionStructure
in interface RinglikeStructure<T>
Monoid<T> multiplicationStructure()
RinglikeStructure
multiplicationStructure
in interface RinglikeStructure<T>