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.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11
ModuleAgda-2.8.0.2Haskell2010
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.