This example shows how to instantiate lattice definitions.
#include "latbuilder/LatDef.h"
#include "latbuilder/SizeParam.h"
#include "latbuilder/TextStream.h"
#include <iostream>
using TextStream::operator<<;
template <LatticeType LA, EmbeddingType L>
{
std::cout <<
"dimension: " << def.
dimension() << std::endl;
std::cout <<
"size parameter: " << def.
sizeParam() << std::endl;
std::cout <<
"generating vector: " << def.
gen() << std::endl;
std::cout << "definition: " << std::endl << def << std::endl;
}
int main()
{
SET_PATH_TO_LATNETBUILDER_FOR_EXAMPLES();
std::cout << "ordinary - simple lattice:" << std::endl;
printLatDef(ordinary);
std::cout << "ordinary - embedded lattice:" << std::endl;
printLatDef(embedded);
);
std::cout << "polynomial - simple lattice:" << std::endl;
printLatDef(pordinary);
);
std::cout << "polynomial - embedded lattice:" << std::endl;
printLatDef(pembedded);
return 0;
}