linbox
Data Structures | Namespaces | Typedefs | Functions
integer.h File Reference

This is a representation of arbitrary integers. More...

#include <givaro/givconfig.h>
#include "linbox/linbox-config.h"
#include <gmp++/gmp++.h>
#include <givaro/givspyinteger.h>
#include <givaro/givcaster.h>
+ Include dependency graph for integer.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

class  indexDomain
 Class used for permuting indices. More...
 

Namespaces

 LinBox
 Namespace in which all linbox code resides.
 

Typedefs

typedef Givaro::Integer integer
 Integers in LinBox. More...
 

Functions

double naturallog (const Givaro::Integer &a)
 Natural logarithm (ln). More...
 
template<class T >
std::enable_if<!std::is_unsigned< T >::value, bool >::value isPositive (const T &t)
 Positiveness of an integer. More...
 
template<class T >
std::enable_if< std::is_unsigned< T >::value, bool >::value isPositive (const T &t)
 Positiveness of an integer. More...
 
template<class T >
std::enable_if<!std::is_unsigned< T >::value, bool >::value isNegative (const T &t)
 Positiveness of an integer. More...
 
template<class T >
std::enable_if< std::is_unsigned< T >::value, bool >::value isNegative (const T &t)
 Positiveness of an integer. More...
 
template<typename IntType >
bool isOdd (const IntType &value)
 Positiveness of an integer. More...
 
template<typename IntType >
bool isEven (const IntType &p)
 Positiveness of an integer. More...
 

Detailed Description

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.