QDP++
qdp_layout.cc File Reference

Layout support routines. More...

#include "qdp.h"
#include "qdp_util.h"

Go to the source code of this file.

Namespaces

namespace  QDP
 Yet another random number generator.
namespace  QDP::Layout
 Layout namespace holding info on problem size and machine info.

Functions

multi1d< int > QDP::Layout::nodeCoord (const multi1d< int > &coord)
 Returns the logical node coordinates for the corresponding lattice coordinate.
multi1d< int > QDP::Layout::localLexiCoordFromLinear (const int &linearr)
void QDP::Layout::QDPXX_getSiteCoords (int coord[], int node, int linear) QDP_CONST
int QDP::Layout::QDPXX_getLinearSiteIndex (const int coord[])
int QDP::Layout::QDPXX_nodeNumber (const int coord[])
multi1d< int > QDP::crtesn (int ipos, const multi1d< int > &latt_size)
 Decompose a lexicographic site into coordinates.
int QDP::local_site (const multi1d< int > &coord, const multi1d< int > &latt_size)
 Calculates the lexicographic site index from the coordinate of a site.

Detailed Description

Layout support routines.

The layout routines provide various layouts. Most of this is architecture dependent, so lives in the ${arch}_specific.cc codes. The routines here are some auxilliary routines.

Definition in file qdp_layout.cc.