public interface SemiRing
A semi-ring is a structure (R,+,*,0,1) such that:
(R,+,0) is a commutative monoid (R,*,1) is a monoid x*(y+z) = x*y + x*z and (y+z)*x = y*x + z*x : multiplication
is distributive with respect to addition x*0 = 0*x = 0: 0 is an absorbing element for *Matrix| Modifier and Type | Method and Description |
|---|---|
SemiRing |
mult(SemiRing s2)
Multiplication of semiring element with another element.
|
SemiRing |
one()
Neutral element for multiplication.
|
SemiRing |
plus(SemiRing s2)
Addition of a Semi-ring element with another element.
|
SemiRing |
zero()
Neutral element for addition.
|
SemiRing plus(SemiRing s2)
s2 - s2SemiRing mult(SemiRing s2)
s2 - s2SemiRing one()
SemiRing zero()
Copyright © 2018. All rights reserved.