Givaro
Public Types | Public Member Functions | Data Fields | Static Public Attributes | Friends
Degree Class Reference

Degree type for polynomials. More...

#include <givdegree.h>

Public Types

enum  { DEGPOLYZERO =-1 }
 
typedef int64_t value_type
 

Public Member Functions

 Degree (long a=DEGPOLYZERO)
 
int64_t value () const
 
Degree operator+ (const Degree &d) const
 
Degree operator- (const Degree &d) const
 
Degree operator* (const Degree &d) const
 
Degree operator/ (const Degree &d) const
 
Degreeoperator+= (const Degree &d)
 
Degreeoperator-= (const Degree &d)
 
Degreeoperator*= (const Degree &d)
 
Degreeoperator/= (const Degree &d)
 
Degree operator<< (const int i) const
 
Degree operator>> (const int i) const
 
Degreeoperator<<= (const int i)
 
Degreeoperator>>= (const int i)
 
int64_t operator++ ()
 
int64_t operator-- ()
 
int64_t operator++ (int)
 
int64_t operator-- (int)
 
int operator== (const Degree &d) const
 
int operator!= (const Degree &d) const
 
int operator<= (const Degree &d) const
 
int operator< (const Degree &d) const
 
int operator>= (const Degree &d) const
 
int operator> (const Degree &d) const
 
int operator== (const int64_t &d) const
 
int operator!= (const int64_t &d) const
 
int operator<= (const int64_t &d) const
 
int operator< (const int64_t &d) const
 
int operator>= (const int64_t &d) const
 
int operator> (const int64_t &d) const
 

Data Fields

int64_t _deg
 

Static Public Attributes

static const long deginfty = Degree::DEGPOLYZERO
 

Friends

std::ostream & operator<< (std::ostream &o, const Degree &d)
 
std::istream & operator>> (std::istream &i, Degree &d)
 

Detailed Description

Degree type for polynomials.

Examples:
examples/FiniteField/GF128.C, examples/FiniteField/GFirreducible.C, examples/Integer/ModularSquareRoot.C, examples/Polynomial/highorder.C, examples/Polynomial/isprimitive.C, examples/Polynomial/pol_arith.C, examples/Polynomial/PolynomialCRT.C, and examples/Polynomial/trunc_arith.C.

Member Typedef Documentation

typedef int64_t value_type

Member Enumeration Documentation

anonymous enum
Enumerator
DEGPOLYZERO 

Constructor & Destructor Documentation

Degree ( long  a = DEGPOLYZERO)
inline

Member Function Documentation

int64_t value ( ) const
inline
Degree operator+ ( const Degree d) const
inline
Degree operator- ( const Degree d) const
inline
Degree operator* ( const Degree d) const
inline
Degree operator/ ( const Degree d) const
inline
Degree& operator+= ( const Degree d)
inline
Degree& operator-= ( const Degree d)
inline
Degree& operator*= ( const Degree d)
inline
Degree& operator/= ( const Degree d)
inline
Degree operator<< ( const int  i) const
inline
Degree operator>> ( const int  i) const
inline
Degree& operator<<= ( const int  i)
inline
Degree& operator>>= ( const int  i)
inline
int64_t operator++ ( )
inline
int64_t operator-- ( )
inline
int64_t operator++ ( int  )
inline
int64_t operator-- ( int  )
inline
int operator== ( const Degree d) const
inline
int operator!= ( const Degree d) const
inline
int operator<= ( const Degree d) const
inline
int operator< ( const Degree d) const
inline
int operator>= ( const Degree d) const
inline
int operator> ( const Degree d) const
inline
int operator== ( const int64_t &  d) const
inline
int operator!= ( const int64_t &  d) const
inline
int operator<= ( const int64_t &  d) const
inline
int operator< ( const int64_t &  d) const
inline
int operator>= ( const int64_t &  d) const
inline
int operator> ( const int64_t &  d) const
inline

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const Degree d 
)
friend
std::istream& operator>> ( std::istream &  i,
Degree d 
)
friend

Field Documentation

const long deginfty = Degree::DEGPOLYZERO
static
int64_t _deg

The documentation for this class was generated from the following files: