SyTen
sql-helpers.cpp File Reference

Implementation for lat/mps/sql-helpers.h. More...

#include "lat/mps/sql-helpers.h"
#include "inc/util/vec.h"
+ Include dependency graph for sql-helpers.cpp:

Namespaces

namespace  syten
 Syten namespace.
 
namespace  syten::SQL
 Contains functions dealing with square lattices.
 
namespace  syten::SQL::Helpers
 Contains helper functions for square lattices.
 

Functions

MappingFunction syten::SQL::Helpers::decideMap (Map const &m)
 Given a mapping specifier, return the appropriate mapping function. More...
 
MappingFunction syten::SQL::Helpers::decideMap (std::string const &s)
 Given a mapping specifier, return the appropriate mapping function. More...
 
void syten::SQL::Helpers::printMapping (int l, int w, int b, int s, std::function< Index(int, int)> coord, std::ostream &out)
 Print a mapping to a stream. More...
 
2D→1D mappers for different snake variants.
Index syten::SQL::Helpers::mapM2 (int x, int y, int l, int w)
 Meandering map (2 sites): More...
 
Index syten::SQL::Helpers::mapM2x (int x, int y, int l, int w)
 Meandering map flipped (2 sites): More...
 
Index syten::SQL::Helpers::mapS (int x, int y, int l, int w)
 Snake-like map. More...
 
Index syten::SQL::Helpers::mapSpiral (int x, int y, int l, int w)
 Spiral map: More...
 
Index syten::SQL::Helpers::mapZ (int x, int y, int l, int w)
 Z-like map: More...
 
Index syten::SQL::Helpers::mapZx (int x, int y, int l, int w)
 Z-like map; x and y exchanged: More...
 

Detailed Description

Implementation for lat/mps/sql-helpers.h.