HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

ModuleAgda-2.8.0.2Haskell2010

Agda.Termination.Semiring

Semirings.

  • 1 type
  • 1 class
  • 3 values
  • PackageAgda-2.8.0.2
  • 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.8.0.2 · Agda.Termination.Order
  • HasZero IntegerDefined in Agda-2.8.0.2 · Agda.Termination.Semiring

    The standard semiring on Integers.

  • HasZero IntDefined in Agda-2.8.0.2 · 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.