project_helper< integer > Struct Reference

#include <modular_integer.hpp>

List of all members.

Static Public Member Functions


Detailed Description

Definition at line 195 of file modular_integer.hpp.


Member Function Documentation

static modular<modulus<integer> > op ( const integer x  )  [inline, static]

Definition at line 202 of file modular_integer.hpp.

00202                         {
00203     return modular<modulus<integer> > (x); }

static void set_op ( modular< modulus< I, V >, W > &  y,
const integer x 
) [inline, static]

Definition at line 197 of file modular_integer.hpp.

References mmx::I(), Modular, and mmx::rem().

00197                                            {
00198     integer p= *Modular(I)::get_modulus ();
00199     y= (x >= 0) ? Modular(I) (as<I> (rem (x, p)))
00200       : - Modular(I) (as<I> (rem (-x, p))); }


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

Generated on 6 Dec 2012 for numerix by  doxygen 1.6.1