| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Agda.Termination.Semiring
Description
Semirings.
Documentation
class Eq a => HasZero a where #
HasZero is needed for sparse matrices, to tell which is the element
that does not have to be stored.
It is a cut-down version of SemiRing which is definable
without the implicit ?cutoff.
Minimal complete definition
Methods
zeroElement :: a #
Instances
| HasZero Int # | The standard semiring on |
Defined in Agda.Termination.Semiring Methods zeroElement :: Int # | |
| HasZero Integer # | The standard semiring on |
Defined in Agda.Termination.Semiring Methods zeroElement :: Integer # | |
| HasZero Order # | |
Defined in Agda.Termination.Order Methods zeroElement :: Order # | |
Semirings.
intSemiring :: Semiring Int #
boolSemiring :: Semiring Bool #
The standard semiring on Bools.