From 2fa89e75e3766d76f18fb7684ba59f5bc7b7fd29 Mon Sep 17 00:00:00 2001 From: Christian Zimmermann Date: Wed, 1 Mar 2017 18:25:26 +0100 Subject: [PATCH] some standard index / range definitions --- src/multi_array_header.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/multi_array_header.h b/src/multi_array_header.h index 21e6488..587b1f5 100644 --- a/src/multi_array_header.h +++ b/src/multi_array_header.h @@ -1,3 +1,4 @@ +// -*- C++ -*- #ifndef __multi_array_header_h__ #define __multi_array_header_h__ @@ -12,4 +13,33 @@ #include "multi_array.h" #include "slice.h" +namespace MultiArrayTools +{ + + /********************************* + * Some standard definitions * + *********************************/ + + // ===== Index Types ===== + + typedef SingleIndex GenericNI; + typedef SingleIndex GenericFI; + typedef SingleIndex LorentzI; + typedef SingleIndex Space1dNI; + typedef SingleIndex Mom1dNI; + // ... + + // ===== Range Types ===== + + typedef SingleRange GenericNR; + typedef SingleRange GenericFR; + typedef SingleRange LorentzR; + typedef SingleRange Space1dNR; + typedef SingleRange Mom1dNR; + typedef MultiRange Space3dNR; + typedef MultiRange Mom3dNR; + // ... + +} + #endif