HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

ModuleAgda-2.7.0.1Haskell2010

Agda.Termination.Semiring

Semirings.

  • 1 type
  • 1 class
  • 3 values
  • PackageAgda-2.7.0.1
  • Exports5
  • LanguageHaskell2010
  • LicenceMIT
  • SourceSemiring.hs
classclass 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.

Methods

Instances3HasZero
  • HasZero OrderDefined in Agda-2.7.0.1 · Agda.Termination.Order
  • HasZero IntegerDefined in Agda-2.7.0.1 · Agda.Termination.Semiring

    The standard semiring on Integers.

  • HasZero IntDefined in Agda-2.7.0.1 · Agda.Termination.Semiring

    The standard semiring on Ints.

datadata Semiring a
#

Semirings.

Constructors

  • Semiring
    • add :: a -> a -> a

      Addition.

    • mul :: a -> a -> a

      Multiplication.

    • zero :: a

      Zero. The one is never used in matrix multiplication , one :: a -- ^ One.