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:
parent
68e742df53
commit
fe1aeb8dbf
@ -6,7 +6,7 @@ class MatrixStack:
|
|||||||
"""
|
"""
|
||||||
"""
|
"""
|
||||||
self.data = A
|
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):
|
def add(self, M):
|
||||||
if self.is_double:
|
if self.is_double:
|
||||||
|
Loading…
Reference in New Issue
Block a user