This example shows how to enumerate integers (respectively polynomials) that are relatively prime with the modulus \(n\) (respectively \(P\)) in the lattice point set.
This example shows how to enumerate integers (respectively polynomials) that are relatively prime with the modulus \(n\) (respectively \(P\)) in the lattice point set.
#include "latbuilder/GenSeq/GeneratingValues.h"
#include "latbuilder/TextStream.h"
#include <iostream>
using TextStream::operator<<;
int main()
{
SET_PATH_TO_LATNETBUILDER_FOR_EXAMPLES();
std::cout << "lattice modulus: " << n << std::endl;
std::cout << " whole sequence: " << WholeSeqIntegers(n) << std::endl;
std::cout << " half sequence: " << HalfSeqIntegers(n) << std::endl;
}
std::cout << "lattice modulus: " << P << std::endl;
std::cout << " whole sequence: " << WholeSeqPolynomials(P) << std::endl;
}
return 0;
}
This file contains a global variable PATH_TO_LATNETBUILDER_DIR which should always equal the path to ...
Indexed sequence of generating values: -For ordinary lattices: integers coprime with a specified modu...
Definition GeneratingValues.h:48
LatBuilder namespace.
Definition libtut_lat.dox:17
Polynomial PolynomialFromInt(uInteger x)
convert Integer to polynomial
NTL::polynomial Polynomial
polynomial over Z/2Z type. This is just a wrapper over NTL::GF2X. See ntlwrap.h.
Definition Types.h:56
unsigned long uInteger
Scalar unsigned integer .
Definition Types.h:40