| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
GaloisField
Documentation
class (Arbitrary k, Eq k, Fractional k, Pretty k, Random k, Show k) => GaloisField k where Source #
Galois fields GF(p^q) for p prime and q non-negative.
Methods
Characteristic p of field and order of prime subfield.
Degree q of field as extension field over prime subfield.
Frobenius endomorphism x->x^p of prime subfield.
order :: k -> Integer Source #
Order p^q of field.
pow :: k -> Integer -> k Source #
Exponentiation x to the power of y.
rnd :: MonadRandom m => m k Source #
Randomised element x of field.