3
0
mirror of https://github.com/triqs/dft_tools synced 2025-01-12 05:58:18 +01:00

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
This commit is contained in:
Michel Ferrero 2013-09-26 21:59:21 +02:00
parent 68e742df53
commit fe1aeb8dbf

View File

@ -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: