OKlibrary  0.2.1.6
Algebra::Z_mod_n< modulus, Int > Class Template Reference

#include <Algebra_Models.hpp>

List of all members.

Public Member Functions

 Z_mod_n ()
 Z_mod_n (Int x)
Z_mod_noperator+= (Z_mod_n y)
Z_mod_noperator*= (Z_mod_n y)
Z_mod_noperator-= (Z_mod_n y)
bool invert ()
Z_mod_noperator/= (Z_mod_n y)

Static Public Member Functions

static const Z_mod_n null ()
static const Z_mod_n unit ()

Friends

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

Detailed Description

template<unsigned long int modulus, typename Int>
class Algebra::Z_mod_n< modulus, Int >

Definition at line 59 of file Algebra_Models.hpp.


Constructor & Destructor Documentation

template<unsigned long int modulus, typename Int>
Algebra::Z_mod_n< modulus, Int >::Z_mod_n ( ) [inline]
template<unsigned long int modulus, typename Int>
Algebra::Z_mod_n< modulus, Int >::Z_mod_n ( Int  x) [inline, explicit]

Definition at line 66 of file Algebra_Models.hpp.


Member Function Documentation

template<unsigned long int modulus, typename Int>
static const Z_mod_n Algebra::Z_mod_n< modulus, Int >::null ( ) [inline, static]

Definition at line 111 of file Algebra_Models.hpp.

References Algebra::Z_mod_n< modulus, Int >::Z_mod_n().

template<unsigned long int modulus, typename Int>
Z_mod_n& Algebra::Z_mod_n< modulus, Int >::operator*= ( Z_mod_n< modulus, Int y) [inline]

Definition at line 76 of file Algebra_Models.hpp.

template<unsigned long int modulus, typename Int>
Z_mod_n& Algebra::Z_mod_n< modulus, Int >::operator+= ( Z_mod_n< modulus, Int y) [inline]

Definition at line 68 of file Algebra_Models.hpp.

template<unsigned long int modulus, typename Int>
Z_mod_n& Algebra::Z_mod_n< modulus, Int >::operator-= ( Z_mod_n< modulus, Int y) [inline]

Definition at line 83 of file Algebra_Models.hpp.

template<unsigned long int modulus, typename Int>
Z_mod_n& Algebra::Z_mod_n< modulus, Int >::operator/= ( Z_mod_n< modulus, Int y) [inline]

Definition at line 102 of file Algebra_Models.hpp.

References Algebra::Z_mod_n< modulus, Int >::invert().

template<unsigned long int modulus, typename Int>
static const Z_mod_n Algebra::Z_mod_n< modulus, Int >::unit ( ) [inline, static]

Definition at line 114 of file Algebra_Models.hpp.

References Algebra::Z_mod_n< modulus, Int >::Z_mod_n().


Friends And Related Function Documentation

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

Definition at line 122 of file Algebra_Models.hpp.

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

Definition at line 118 of file Algebra_Models.hpp.


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