From edcbeb87eb5edfba5bb4dc5f8e1e009fa173e719 Mon Sep 17 00:00:00 2001 From: Christian Zimmermann Date: Tue, 19 Dec 2017 19:05:10 +0100 Subject: [PATCH] move block() into op master instanciation -> more save --- src/multi_array_operation.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/multi_array_operation.h b/src/multi_array_operation.h index d9100f0..40dd60c 100644 --- a/src/multi_array_operation.h +++ b/src/multi_array_operation.h @@ -329,6 +329,7 @@ namespace MultiArrayTools //std::clock_t cs = clock(); for(*mIndex = 0; mIndex->pos() != mIndex->max(); mIndex->pp(blockIndexNum) ){ //std::clock_t c1 = clock(); + block(); get() = mSecond.get(); //std::clock_t c2 = clock(); //cnt += c2 - c1; @@ -341,14 +342,14 @@ namespace MultiArrayTools template MBlock& OperationMaster::get() { - block(); + //block(); return mBlock; } template const Block& OperationMaster::get() const { - block(); + //block(); return mBlock; }