From bd0485ba95cb9449167d05e0e5a97042eff4ce8f Mon Sep 17 00:00:00 2001 From: Christian Zimmermann Date: Fri, 5 Apr 2019 20:20:39 +0200 Subject: [PATCH] set target step size to 0 for contractions (otherwise map indices in contractions will not work correctly) --- src/include/multi_array_operation.cc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/multi_array_operation.cc.h b/src/include/multi_array_operation.cc.h index b810d33..171689d 100644 --- a/src/include/multi_array_operation.cc.h +++ b/src/include/multi_array_operation.cc.h @@ -691,7 +691,7 @@ namespace MultiArrayTools auto Contraction::loop(Expr exp) const -> decltype(mInd->iforh(1,mOp.loop(exp))) { - return mInd->iforh(1,mOp.loop(exp)); + return mInd->iforh(0,mOp.loop(exp)); } /**************************