algebramix_doc 0.3
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 >

Examples:

crt_test.cpp.

Definition at line 37 of file crt_naive.hpp.


Constructor & Destructor Documentation

Definition at line 40 of file crt_naive.hpp.

: v () {}
coprime_moduli_sequence ( const coprime_moduli_sequence< M, V > &  x) [inline]

Definition at line 41 of file crt_naive.hpp.

: 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.

                        {
    if (i >= N(v)) {
      bool b= V::extend (v, i+1);
      if (!b) return M(0);
    }
    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:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines