From d5c8ec7c9d21506ef9517cdc23df6383bcfc554c Mon Sep 17 00:00:00 2001 From: Christian Zimmermann Date: Thu, 2 Mar 2017 19:27:46 +0100 Subject: [PATCH] some minor extensions + add some first range transform code --- src/multi_array_header.h | 2 ++ src/range_base.h | 3 ++- src/range_transformer.cc | 9 +++++++++ src/range_transformer.h | 20 ++++++++++++++++++++ 4 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 src/range_transformer.cc create mode 100644 src/range_transformer.h diff --git a/src/multi_array_header.h b/src/multi_array_header.h index 587b1f5..8987c84 100644 --- a/src/multi_array_header.h +++ b/src/multi_array_header.h @@ -27,6 +27,7 @@ namespace MultiArrayTools typedef SingleIndex LorentzI; typedef SingleIndex Space1dNI; typedef SingleIndex Mom1dNI; + typedef SingleIndex EnsI; // ... // ===== Range Types ===== @@ -36,6 +37,7 @@ namespace MultiArrayTools typedef SingleRange LorentzR; typedef SingleRange Space1dNR; typedef SingleRange Mom1dNR; + typedef SingleRange EnsR; typedef MultiRange Space3dNR; typedef MultiRange Mom3dNR; // ... diff --git a/src/range_base.h b/src/range_base.h index b8d8238..6c18a18 100644 --- a/src/range_base.h +++ b/src/range_base.h @@ -19,7 +19,8 @@ namespace MultiArrayTools SPACE = 2, MOMENTUM = 3, LORENTZ = 4, - SPIN = 5 + SPIN = 5, + ENSEMBLE = 6 }; class MultiRangeType diff --git a/src/range_transformer.cc b/src/range_transformer.cc new file mode 100644 index 0000000..2370b7b --- /dev/null +++ b/src/range_transformer.cc @@ -0,0 +1,9 @@ +// -*- C++ -*- + +#include "range_transformer.h" + +namespace MultiArrayTools +{ + + +} diff --git a/src/range_transformer.h b/src/range_transformer.h new file mode 100644 index 0000000..aab60eb --- /dev/null +++ b/src/range_transformer.h @@ -0,0 +1,20 @@ +// -*- C++ -*- + +#ifndef __range_transformer_h__ +#define __range_transformer_h__ + +#include +#include "base_def.h" + +namespace MultiArrayTools +{ + + // init 'MultiRange' with 'new' + template + shared_ptr > combine(const Ranges&... ranges); + +} + +#include "range_transformer.cc" + +#endif