|
| template<class T> |
| T | abs (const T &a) |
| |
| double | naturallog (const Givaro::Integer &a) |
| | Natural logarithm (ln).
|
| |
| template<class T> |
| std::enable_if<!std::is_unsigned< T >::value, bool >::value | isPositive (const T &t) |
| | Positiveness of an integer.
|
| |
| template<class T> |
| std::enable_if< std::is_unsigned< T >::value, bool >::value | isPositive (const T &t) |
| |
| template<class T> |
| std::enable_if<!std::is_unsigned< T >::value, bool >::value | isNegative (const T &t) |
| |
| template<class T> |
| std::enable_if< std::is_unsigned< T >::value, bool >::value | isNegative (const T &t) |
| |
| template<typename IntType> |
| bool | isOdd (const IntType &value) |
| |
| template<typename IntType> |
| bool | isEven (const IntType &p) |
| |
This is a representation of arbitrary integers.
It is a wrapper of GMP integers. Arithmetic operations are via C++ infix operator forms (eg. a*b) . It is for `‘casual’' uses such as characteristics and cardinalities and when initializing field elements. The integers are also represented as a ring for use in integer matrix computation, see <givaro/zring.h> or ring/ntl/ntl-zz.h.