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 size: " << n << std::endl;
std::cout << " whole sequence: " << WholeSeqIntegers(n) << std::endl;
std::cout << " half sequence: " << HalfSeqIntegers(n) << std::endl;
}
std::cout << "lattice size: " << P << std::endl;
std::cout << " whole sequence: " << WholeSeqPolynomials(P) << std::endl;
}
return 0;
}