CAPD::DynSys Library  6.0.0
Zp Class Reference

#include <capd/rings/Zp.h>

Public Member Functions

 Zp (int v=0)
 
 operator int () const
 
Zpoperator+= (const Zp &v)
 
Zpoperator-= (const Zp &v)
 
Zpoperator*= (const Zp &v)
 
Zpoperator/= (const Zp &v)
 
Zpoperator++ ()
 
Zpoperator-- ()
 
Zp operator++ (int)
 
Zp operator-- (int)
 

Static Public Member Functions

static void setMod (int a_p)
 
static int getMod ()
 

Friends

Zp operator- (const Zp &v)
 
Zp operator+ (const Zp &v1, const Zp &v2)
 
Zp operator- (const Zp &v1, const Zp &v2)
 
Zp operator* (const Zp &v1, const Zp &v2)
 
Zp operator/ (const Zp &v1, const Zp &v2)
 
bool operator< (const Zp &v1, const Zp &v2)
 
bool operator> (const Zp &v1, const Zp &v2)
 
bool operator<= (const Zp &v1, const Zp &v2)
 
bool operator>= (const Zp &v1, const Zp &v2)
 
bool operator== (const Zp &v1, const Zp &v2)
 
bool operator!= (const Zp &v1, const Zp &v2)
 
std::ostream & operator<< (std::ostream &out, const Zp &v)
 
std::istream & operator>> (std::istream &inp, Zp &v)
 
bool isDivisible (Zp a, Zp b)
 
bool isInvertible (Zp a)
 
Zp inverse (Zp a)
 
std::string fieldStringForm (Zp)
 
bool isZero (const Zp &a)
 

Constructor & Destructor Documentation

◆ Zp()

Zp::Zp ( int  v = 0)
inline

Member Function Documentation

◆ getMod()

static int Zp::getMod ( )
inlinestatic

◆ operator int()

Zp::operator int ( ) const
inline

◆ operator*=()

Zp& Zp::operator*= ( const Zp v)
inline

◆ operator++() [1/2]

Zp& Zp::operator++ ( )
inline

◆ operator++() [2/2]

Zp Zp::operator++ ( int  )
inline

◆ operator+=()

Zp& Zp::operator+= ( const Zp v)
inline

◆ operator--() [1/2]

Zp& Zp::operator-- ( )
inline

◆ operator--() [2/2]

Zp Zp::operator-- ( int  )
inline

◆ operator-=()

Zp& Zp::operator-= ( const Zp v)
inline

◆ operator/=()

Zp& Zp::operator/= ( const Zp v)
inline

◆ setMod()

static void Zp::setMod ( int  a_p)
inlinestatic

Friends And Related Function Documentation

◆ fieldStringForm

std::string fieldStringForm ( Zp  )
friend

◆ inverse

Zp inverse ( Zp  a)
friend

◆ isDivisible

bool isDivisible ( Zp  a,
Zp  b 
)
friend

◆ isInvertible

bool isInvertible ( Zp  a)
friend

◆ isZero

bool isZero ( const Zp a)
friend

◆ operator!=

bool operator!= ( const Zp v1,
const Zp v2 
)
friend

◆ operator*

Zp operator* ( const Zp v1,
const Zp v2 
)
friend

◆ operator+

Zp operator+ ( const Zp v1,
const Zp v2 
)
friend

◆ operator- [1/2]

Zp operator- ( const Zp v)
friend

◆ operator- [2/2]

Zp operator- ( const Zp v1,
const Zp v2 
)
friend

◆ operator/

Zp operator/ ( const Zp v1,
const Zp v2 
)
friend

◆ operator<

bool operator< ( const Zp v1,
const Zp v2 
)
friend

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const Zp v 
)
friend

◆ operator<=

bool operator<= ( const Zp v1,
const Zp v2 
)
friend

◆ operator==

bool operator== ( const Zp v1,
const Zp v2 
)
friend

◆ operator>

bool operator> ( const Zp v1,
const Zp v2 
)
friend

◆ operator>=

bool operator>= ( const Zp v1,
const Zp v2 
)
friend

◆ operator>>

std::istream& operator>> ( std::istream &  inp,
Zp v 
)
friend

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