This example shows how to append digits to the left of a component of a generating vector in order to extend the number of points of a lattice.
#include "latbuilder/GenSeq/Extend.h"
#include "latbuilder/TextStream.h"
#include "latbuilder/Digits.h"
#include <iostream>
using TextStream::operator<<;
template <typename SEQ>
void showSeq(
uInteger base,
const SEQ& seq)
{
for (auto x : seq) {
std::cout << " " << digits << std::endl;
}
}
int main()
{
SET_PATH_TO_LATNETBUILDER_FOR_EXAMPLES();
std::cout << "base: " << b << std::endl;
std::cout << " one level: " << seq << std::endl;
showSeq(b, seq);
}
return 0;
}