finite-field-0.8.0: Finite Fields

Portabilityportable
Stabilityprovisional
Maintainermasahiro.sakai@gmail.com
Safe HaskellSafe-Inferred

Data.FiniteField.Base

Description

 

Synopsis

Documentation

class Fractional k => FiniteField k whereSource

Type class for finite fields

Methods

order :: k -> IntegerSource

The order is number of elements of a finite field k. It of the form p^n, where p is prime number called the characteristic of the field, and n is a positive integer.

char :: k -> IntegerSource

The characteristic of a field, p.

pthRoot :: k -> kSource

The inverse of Frobenius endomorphism xx^p.

allValues :: [k]Source

All values of a field

Instances