SyTen
kspace-helpers.h File Reference

Helpers for k-space lattices. More...

#include "inc/util/scalars.h"
#include "inc/util/output.h"
+ Include dependency graph for kspace-helpers.h:
+ This graph shows which files directly or indirectly include this file:

Namespaces

 syten
 Syten 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.
 

Macros

#define SYTEN_KTOY_DEFAULT_MAP   "linear"
 Default map to be used. More...
 
#define SYTEN_KTOY_MAPS
 Valid mappings for momentum→position maps, update if k_to_y::decideFunction() changes. More...
 

Typedefs

typedef Index(* syten::k_to_y::MomentumFunction) (Index maxp, int k)
 Type of a function returning a momentum→position mapping. More...
 

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

Helpers for k-space lattices.