some standard index / range definitions
This commit is contained in:
parent
51dcbe7b92
commit
2fa89e75e3
1 changed files with 30 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
// -*- C++ -*-
|
||||||
|
|
||||||
#ifndef __multi_array_header_h__
|
#ifndef __multi_array_header_h__
|
||||||
#define __multi_array_header_h__
|
#define __multi_array_header_h__
|
||||||
|
@ -12,4 +13,33 @@
|
||||||
#include "multi_array.h"
|
#include "multi_array.h"
|
||||||
#include "slice.h"
|
#include "slice.h"
|
||||||
|
|
||||||
|
namespace MultiArrayTools
|
||||||
|
{
|
||||||
|
|
||||||
|
/*********************************
|
||||||
|
* Some standard definitions *
|
||||||
|
*********************************/
|
||||||
|
|
||||||
|
// ===== Index Types =====
|
||||||
|
|
||||||
|
typedef SingleIndex<size_t,RangeType::ANY> GenericNI;
|
||||||
|
typedef SingleIndex<double,RangeType::ANY> GenericFI;
|
||||||
|
typedef SingleIndex<size_t,RangeType::LORENTZ> LorentzI;
|
||||||
|
typedef SingleIndex<int,RangeType::SPACE> Space1dNI;
|
||||||
|
typedef SingleIndex<int,RangeType::MOMENTUM> Mom1dNI;
|
||||||
|
// ...
|
||||||
|
|
||||||
|
// ===== Range Types =====
|
||||||
|
|
||||||
|
typedef SingleRange<size_t,RangeType::ANY> GenericNR;
|
||||||
|
typedef SingleRange<double,RangeType::ANY> GenericFR;
|
||||||
|
typedef SingleRange<size_t,RangeType::LORENTZ> LorentzR;
|
||||||
|
typedef SingleRange<int,RangeType::SPACE> Space1dNR;
|
||||||
|
typedef SingleRange<int,RangeType::MOMENTUM> Mom1dNR;
|
||||||
|
typedef MultiRange<Space1dNR,Space1dNR,Space1dNR> Space3dNR;
|
||||||
|
typedef MultiRange<Mom1dNR,Mom1dNR,Mom1dNR> Mom3dNR;
|
||||||
|
// ...
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue