SyTen
kspace-helpers.cpp File Reference

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

+ Include dependency graph for kspace-helpers.cpp:

Namespaces

namespace  syten
 Syten namespace.
 
namespace  syten::k_to_y
 Functions which, when given a momentum on the ring k, give the coordinate y at which we want to place this momentum.
 

Functions

MomentumFunction syten::k_to_y::decideFunction (std::string const &fun)
 Returns a pointer to the specified function, update SYTEN_KTOY_MAPS if this changes. More...
 
Index syten::k_to_y::linear (Index maxp, int k)
 The trivial mapping. More...
 
Index syten::k_to_y::map_to_interval (Index maxp, int k)
 Maps the momentum k into the interval \( [0, maxp) \). More...
 
Index syten::k_to_y::ordered (std::vector< Index > idx, Index maxp, int k)
 momenta ordered according to vector idx loaded from file More...
 
std::vector< Index > syten::k_to_y::ordering (Index maxp, std::function< Index(int)> kfun)
 Returns a vector v[i], meaning that the i-th column has momentum v[i]. More...
 
Index syten::k_to_y::sep_pi (Index maxp, int k)
 momenta separated by π (or maxp/2) are next to each other More...
 

Detailed Description

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