This example shows how to enumerate integers that are relatively prime with the number of points \(n\) in the lattice point set.
#include "latbuilder/GenSeq/CoprimeIntegers.h"
#include "latbuilder/TextStream.h"
#include <iostream>
using TextStream::operator<<;
int main()
{
std::cout << "lattice size: " << n << std::endl;
std::cout << " whole sequence: " << WholeSeq(n) << std::endl;
std::cout << " half sequence: " << HalfSeq(n) << std::endl;
}
return 0;
}