Safe Haskell | None |
---|---|
Language | Haskell2010 |
Basic (unoptimized) finite field arithmetic.
- type PrimeField fp = (Enumerable fp, Eq fp, ZeroTestable fp, Field fp, IrreduciblePoly fp)
- type family CharOf fp :: Nat
- data GF fp deg
- trace :: forall fp deg. GFCtx fp deg => GF fp deg -> fp
- size :: GFCtx fp deg => Tagged (GF fp deg) Int
Documentation
type PrimeField fp = (Enumerable fp, Eq fp, ZeroTestable fp, Field fp, IrreduciblePoly fp) Source
Constraint synonym for prime-order fields.
A finite field of given degree over F_p
.
(Eq fp, C fp) => Eq (GF k fp deg) Source | |
Show fp => Show (GF k fp deg) Source | |
NFData fp => NFData (GF k fp deg) Source | |
GFCtx k fp deg => C (GF k fp deg) Source | |
GFCtx k fp deg => C (GF k fp deg) Source | |
C fp => C (GF k fp deg) Source | |
C fp => C (GF k fp deg) Source | |
GFCtx k fp deg => Enumerable (GF k fp deg) Source | |
GFCtx k fp deg => CRTrans (GF k fp deg) Source |