Permalink
Browse files

BUG: fix dtype comparison on big-endian machines. Closes ticket 1680.

  • Loading branch information...
1 parent 51f3b8a commit 6c0202527dd4e676d99648bd268a9f453de13a06 @rgommers rgommers committed Jun 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 scipy/sparse/linalg/dsolve/umfpack/umfpack.py
@@ -345,10 +345,10 @@ def _getIndx( self, mtx ):
raise ValueError('matrix must have long indices')
if self.isReal:
- if mtx.data.dtype != np.dtype('<f8'):
+ if mtx.data.dtype != np.dtype('f8'):
raise ValueError('matrix must have float64 values')
else:
- if mtx.data.dtype != np.dtype('<c16'):
+ if mtx.data.dtype != np.dtype('c16'):
raise ValueError('matrix must have complex128 values')
return indx

0 comments on commit 6c02025

Please sign in to comment.