Safe Haskell | None |
---|---|
Language | Haskell2010 |
An implementation of modular arithmetic, i.e., the ring Zq.
- data ZqBasic q z
Documentation
The ring Z_q
of integers modulo q
, using underlying integer
type z
.
(ReflectsTI k q z, Ring z) => Correct * TrivGad (ZqBasic k q z) Source | |
(ReflectsTI k q z, Ring z) => Decompose * TrivGad (ZqBasic k q z) Source | |
(ReflectsTI k q z, Additive z) => Gadget * TrivGad (ZqBasic k q z) Source | |
(ReflectsTI k1 q z, Ring z, Reflects k b z) => Decompose * (BaseBGad k b) (ZqBasic k q z) Source | |
(ReflectsTI k1 q z, Additive z, Reflects k b z) => Gadget * (BaseBGad k b) (ZqBasic k q z) Source | |
Unbox z => Vector Vector (ZqBasic k q z) Source | |
Unbox z => MVector MVector (ZqBasic k q z) Source | |
(Reflects k q z, Ring (ZqBasic k q z)) => Reduce Integer (ZqBasic k q z) Source | |
ReflectsTI k q z => Reduce z (ZqBasic k q z) Source | |
Eq z => Eq (ZqBasic k q z) Source | |
Ord z => Ord (ZqBasic k q z) Source | |
Show z => Show (ZqBasic k q z) Source | |
(ReflectsTI k q z, Random z) => Random (ZqBasic k q z) Source | |
(ReflectsTI k q z, Random z) => Arbitrary (ZqBasic k q z) Source | |
Storable z => Storable (ZqBasic k q z) Source | |
NFData z => NFData (ZqBasic k q z) Source | |
(ReflectsTI k q z, PID z, Show z) => C (ZqBasic k q z) Source | |
Field (ZqBasic k q z) => C (ZqBasic k q z) Source | |
(ReflectsTI k q z, Ring z) => C (ZqBasic k q z) Source | |
C z => C (ZqBasic k q z) Source | |
(ReflectsTI k q z, Additive z) => C (ZqBasic k q z) Source | |
Elt z => Elt (ZqBasic k q z) Source | |
Unbox z => Unbox (ZqBasic k q z) Source | |
ReflectsTI k q z => Lift' (ZqBasic k q z) Source | |
ReflectsTI k q z => Mod (ZqBasic k q z) Source | |
(ReflectsTI k q z, Enum z) => Enumerable (ZqBasic k q z) Source | |
(ReflectsTI k q z, Ring (ZqBasic k q z)) => CRTEmbed (ZqBasic k q z) Source | |
(Reflects k q z, PID z, (~) * r (ZqBasic k q z), Mod r, Enumerable r, Show z) => CRTrans (ZqBasic k q z) Source | |
(PPow pp, (~) * zq (ZqBasic PrimePower pp z), PrimeField (ZPOf zq), Ring zq, Ring (ZPOf zq)) => ZPP (ZqBasic PrimePower pp z) Source | |
Reflects k q Int64 => Dispatch (ZqBasic k q Int64) Source | |
(TElt CT (ZqBasic k q i), Dispatch (ZqBasic k q i)) => CRNS (ZqBasic k q i) Source | |
(Reflects k p z, ReflectsTI k1 q z, Field (ZqBasic k p z), Field (ZqBasic k1 q z)) => Encode (ZqBasic k p z) (ZqBasic k q z) Source | |
(ReflectsTI k q z, ReflectsTI k1 q' z, Ring z) => Rescale (ZqBasic k q z) (ZqBasic k q' z) Source | |
data MVector s (ZqBasic k q z) = MV_ZqBasic (MVector s z) Source | |
type CharOf * (ZqBasic Nat p z) = p Source | |
data Vector (ZqBasic k q z) = V_ZqBasic (Vector z) Source | |
type LiftOf (ZqBasic k q z) = z Source | |
type ModRep (ZqBasic k q z) = z Source | |
type CRTExt (ZqBasic k q z) = Complex Double Source | |
type ZPOf (ZqBasic PrimePower pp z) = ZqBasic Nat (PrimePP pp) z Source | |
type DecompOf (ZqBasic k q z) = z Source | |
type DecompOf (ZqBasic k q z) = z Source |