Module integer

Module integer 

Source
Expand description

Contains the trait integer::IntegerRing for rings that represent the ring of integers Z.

Modules§

generic_impls
Implementations of IntegerRing functionality that make sense for any IntegerRing, and thus can be used as default if no better implementation can be provided for a concrete IntegerRing.
generic_testsgeneric_tests

Traits§

IntCast
Helper trait to simplify conversion between ints.
IntegerRing
Trait for rings that are isomorphic to the ring of integers ZZ = { ..., -2, -1, 0, 1, 2, ... }.
IntegerRingStore
Trait for RingStores that store IntegerRings. Mainly used to provide a convenient interface to the IntegerRing-functions.

Functions§

binomialunstable-enable
Computes the binomial coefficient of n and k, defined as n(n - 1)...(n - k + 1)/k!.
factorialunstable-enable
Availability
int_cast
Conversion of elements between two rings representing the integers ZZ.

Type Aliases§

BigIntRingmpir
Type alias for the current default used big integer ring implementation.
BigIntRingBasempir
Type alias for the current default used big integer ring implementation.