linbox
Namespaces | Constant Groups | Typedefs | Functions
integer.h File Reference

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

#include "linbox/linbox-config.h"
#include "givaro/givconfig.h"
#include "gmp++/gmp++.h"
#include <cfloat>
#include <math.h>

Namespaces

 LinBox
 Namespace in which all linbox code resides.
 

Constant Groups

 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 >
bool isPositive (const T &x)
 Positiveness of an integer. More...
 
template<>
bool isPositive (const uint8_t &)
 Positiveness of an integer. More...
 
template<>
bool isPositive (const uint16_t &)
 Positiveness of an integer. More...
 
template<>
bool isPositive (const uint32_t &)
 Positiveness of an integer. More...
 
template<>
bool isPositive (const uint64_t &)
 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 LinBox ring for use in integer matrix computation, see PID-integer.h or see field/ntl-ZZ.h.