File: dtype.diff

package info (click to toggle)
python-scipy 0.10.1%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 42,232 kB
  • sloc: cpp: 224,773; ansic: 103,496; python: 85,210; fortran: 79,130; makefile: 272; sh: 43
file content (21 lines) | stat: -rw-r--r-- 1,059 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: BUG: fix dtype comparison on big-endian machines.
URL: https://github.com/scipy/scipy/commit/4625c061b2fa37defa66eb5c8d5593aaedca8229
Debian: http://bugs.debian.org/682030

Index: python-scipy-0.10.1+dfsg1/scipy/sparse/linalg/dsolve/umfpack/umfpack.py
===================================================================
--- python-scipy-0.10.1+dfsg1.orig/scipy/sparse/linalg/dsolve/umfpack/umfpack.py	2012-02-19 10:53:08.000000000 -0500
+++ python-scipy-0.10.1+dfsg1/scipy/sparse/linalg/dsolve/umfpack/umfpack.py	2012-07-21 16:56:15.966422806 -0400
@@ -345,10 +345,10 @@
                 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