#include <linteger/montyrep.hxx>
MontyRing::MontyRing();This constructor creates a NULL instance, representing no choice of a residue ring that Montgomery representation are to be used in.
LInteger
MontyRing::MontyRing(const LInteger& N);This constructor creates an object which saves the precomputation information for the ring of residue classes with a cardinality equal to the integer that N represents. This library only allows the use of Montgomery representations for residue rings of odd, and greater than one, cardinality.
MontyRing::MontyRing(const MontyRing& x);The copy constructor creates an instance containing the same precomputation information that x contains. The newly created instance represents the same choice of residue rings that x represents.
MontyRing::~MontyRing();The destructor deletes the memory dynamically allocated to the instance.
MontyRing
inline MontyRing& MontyRing::operator=(const MontyRing& x);This assignment makes the calling instance contain the same precomputation information that x contains, and returns a reference to the modified calling instance. The calling instance will then represent the same choice of residue rings that x represents.