coprime_moduli_sequence< M, V > Struct Template Reference

#include <crt_naive.hpp>

List of all members.

Public Member Functions

Public Attributes


Detailed Description

template<typename M, typename V = typename coprime_moduli_helper< M >::sequence>
struct mmx::coprime_moduli_sequence< M, V >

Definition at line 37 of file crt_naive.hpp.


Constructor & Destructor Documentation

coprime_moduli_sequence (  )  [inline]

Definition at line 40 of file crt_naive.hpp.

00040 : v () {}

coprime_moduli_sequence ( const coprime_moduli_sequence< M, V > &  x  )  [inline]

Definition at line 41 of file crt_naive.hpp.

00041 : v (x.v) {}


Member Function Documentation

M operator[] ( nat  i  )  [inline]

Definition at line 43 of file crt_naive.hpp.

References mmx::extend(), M, mmx::N(), and coprime_moduli_sequence< M, V >::v.

00043                         {
00044     if (i >= N(v)) {
00045       bool b= V::extend (v, i+1);
00046       if (!b) return M(0);
00047     }
00048     return v[i]; }


Member Data Documentation

vector<M> v

Definition at line 38 of file crt_naive.hpp.

Referenced by coprime_moduli_sequence< M, V >::operator[]().


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

Generated on 6 Dec 2012 for algebramix by  doxygen 1.6.1