From b161ab0990d4239d11652cc20e574b5a0793249a Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Sun, 11 Nov 2012 09:10:30 -0500 Subject: [PATCH] Fixed dot-product in case the first dimension is odd --- src/fourier/euclidian.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fourier/euclidian.hpp b/src/fourier/euclidian.hpp index 2a9c2b1..1fbd480 100644 --- a/src/fourier/euclidian.hpp +++ b/src/fourier/euclidian.hpp @@ -200,7 +200,7 @@ namespace CosmoTool result += 2*(conj(d1[idx]) * d2[idx]).real(); } } - if (!even0) + if (even0) { for (long p = 0; p < plane_size; p++) {