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.
Methods
zeroElement :: a
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27
ModuleAgda-2.7.0.1Haskell2010
Semirings.
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.
zeroElement :: aThe standard semiring on Bools.