From fe1aeb8dbfdacc59f3d2375eef637d5b385a9e6a Mon Sep 17 00:00:00 2001 From: Michel Ferrero Date: Thu, 26 Sep 2013 21:59:21 +0200 Subject: [PATCH] Fix for compatibility with 32-bit systems This is a fix for issue #18. The type float128 doesn't exist on 32-bit machines. I removed it from the matrix_stack.pyx detection of a scalar. modified: pytriqs/gf/local/matrix_stack.pyx --- pytriqs/gf/local/matrix_stack.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytriqs/gf/local/matrix_stack.pyx b/pytriqs/gf/local/matrix_stack.pyx index 9fcc95ee..76b54753 100644 --- a/pytriqs/gf/local/matrix_stack.pyx +++ b/pytriqs/gf/local/matrix_stack.pyx @@ -6,7 +6,7 @@ class MatrixStack: """ """ self.data = A - self.is_double = A.dtype in [numpy.float, numpy.float64, numpy.float128, numpy.float, numpy.float_] + self.is_double = A.dtype in [numpy.float, numpy.float32, numpy.float64, numpy.float_] def add(self, M): if self.is_double: