Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Prime fields.
TODO: do it properly; and fast implementation for specialized prime fields
Documentation
2^31-1
is a prime (in practice this seems to be significantly faster than 2^63-25
)
invZp_euclid :: Int64 -> Int64 Source #
Inverse using the binary Euclidean algorithm