OKlibrary  0.2.1.6
Algebra::Zmodn< Int > Class Template Reference

#include <Algebra_Models.hpp>

List of all members.

Public Member Functions

 Zmodn ()
 Zmodn (Int x)
Int rem () const
Zmodnoperator+= (Zmodn y)
Zmodnoperator*= (Zmodn y)
Zmodnoperator-= (Zmodn y)
bool invert ()
Zmodnoperator/= (Zmodn y)

Static Public Member Functions

static const Zmodn null ()
static const Zmodn unit ()

Static Public Attributes

static Int modulus

Friends

bool operator== (const Zmodn lhs, const Zmodn rhs)
std::ostream & operator<< (std::ostream &out, Zmodn< Int > x)

Detailed Description

template<typename Int = long int>
class Algebra::Zmodn< Int >

Definition at line 188 of file Algebra_Models.hpp.


Constructor & Destructor Documentation

template<typename Int = long int>
Algebra::Zmodn< Int >::Zmodn ( ) [inline]

Definition at line 194 of file Algebra_Models.hpp.

Referenced by Algebra::Zmodn< Int >::null(), and Algebra::Zmodn< Int >::unit().

template<typename Int = long int>
Algebra::Zmodn< Int >::Zmodn ( Int  x) [inline, explicit]

Definition at line 195 of file Algebra_Models.hpp.


Member Function Documentation

template<typename Int = long int>
static const Zmodn Algebra::Zmodn< Int >::null ( ) [inline, static]

Definition at line 240 of file Algebra_Models.hpp.

References Algebra::Zmodn< Int >::Zmodn().

template<typename Int = long int>
Zmodn& Algebra::Zmodn< Int >::operator*= ( Zmodn< Int y) [inline]

Definition at line 206 of file Algebra_Models.hpp.

References Algebra::Zmodn< Int >::modulus.

template<typename Int = long int>
Zmodn& Algebra::Zmodn< Int >::operator+= ( Zmodn< Int y) [inline]

Definition at line 198 of file Algebra_Models.hpp.

References Algebra::Zmodn< Int >::modulus.

template<typename Int = long int>
Zmodn& Algebra::Zmodn< Int >::operator-= ( Zmodn< Int y) [inline]

Definition at line 213 of file Algebra_Models.hpp.

References Algebra::Zmodn< Int >::modulus.

template<typename Int = long int>
Zmodn& Algebra::Zmodn< Int >::operator/= ( Zmodn< Int y) [inline]
template<typename Int = long int>
Int Algebra::Zmodn< Int >::rem ( ) const [inline]
template<typename Int = long int>
static const Zmodn Algebra::Zmodn< Int >::unit ( ) [inline, static]

Definition at line 243 of file Algebra_Models.hpp.

References Algebra::Zmodn< Int >::Zmodn().


Friends And Related Function Documentation

template<typename Int = long int>
std::ostream& operator<< ( std::ostream &  out,
Zmodn< Int x 
) [friend]

Definition at line 251 of file Algebra_Models.hpp.

template<typename Int = long int>
bool operator== ( const Zmodn< Int lhs,
const Zmodn< Int rhs 
) [friend]

Definition at line 247 of file Algebra_Models.hpp.


Member Data Documentation


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