[Numpy-discussion] Lots of 32bits specific errors

Xavier Gnata xavier.gnata@gmail....
Tue Jan 5 15:48:43 CST 2010


Hi,

I have compiled numpy 1.5.0.dev8039 both on a 32 and a 64bits ubuntu
machine.

On the 64bits one, everything is fine:
numpy.test get a perfect score:
<nose.result.TextTestResult run=2504 errors=0 failures=0>

On the 32bits ubuntu, the story is not that nice:
<nose.result.TextTestResult run=2504 errors=1 failures=16>

ERROR: Test filled w/
mvoid                                                 
----------------------------------------------------------------------      

Traceback (most recent call
last):                                          
  File
"/usr/local/lib/python2.6/dist-packages/numpy/ma/tests/test_core.py",
line 506, in
test_filled_w_mvoid                                            
    a = mvoid(np.array((1, 2)), mask=[(0, 1)],
dtype=ndtype)                
  File "/usr/local/lib/python2.6/dist-packages/numpy/ma/core.py", line
5454, in
__new__                                                                  
    _data = ndarray.__new__(self, (), dtype=dtype,
buffer=data.data)        
TypeError: buffer is too small for requested
array                          

======================================================================
FAIL: test_cdouble (test_linalg.TestCond2)                           
----------------------------------------------------------------------
Traceback (most recent call last):                                   
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 44, in test_cdouble                                              
    self.do(a,
b)                                                           
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 114, in do                                                       
    old_assert_almost_equal(s[0]/s[-1], linalg.cond(a,2),
decimal=5)        
  File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py",
line 455, in
assert_almost_equal                                                 
    raise
AssertionError(msg)                                               
AssertionError:                                                             

Arrays are not almost
equal                                                 
 ACTUAL:
9.4348091510413177                                                 
 DESIRED:
22.757141876814547                                                

======================================================================
FAIL: test_csingle (test_linalg.TestCond2)                           
----------------------------------------------------------------------
Traceback (most recent call last):                                   
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 39, in test_csingle                                              
    self.do(a,
b)                                                           
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 114, in do                                                       
    old_assert_almost_equal(s[0]/s[-1], linalg.cond(a,2),
decimal=5)        
  File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py",
line 455, in
assert_almost_equal                                                 
    raise
AssertionError(msg)                                               
AssertionError:                                                             

Arrays are not almost
equal                                                 
 ACTUAL:
9.4348097                                                          
 DESIRED:
22.757143                                                         

======================================================================
FAIL: test_cdouble (test_linalg.TestDet)                             
----------------------------------------------------------------------
Traceback (most recent call last):                                   
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 44, in test_cdouble                                              
    self.do(a,
b)                                                           
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 135, in do                                                       
    assert_almost_equal(d,
multiply.reduce(ev))                             
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 23, in assert_almost_equal                                       
    old_assert_almost_equal(a, b, decimal=decimal,
**kw)                    
  File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py",
line 435, in
assert_almost_equal                                                 
    raise
AssertionError(msg)                                               
AssertionError:                                                             

Arrays are not almost
equal                                                 
 ACTUAL:
(8.8817841970012523e-16-4j)                                        
 DESIRED:
(5.2800000000000011-11.040000000000004j)                          

======================================================================
FAIL: test_csingle (test_linalg.TestDet)                             
----------------------------------------------------------------------
Traceback (most recent call last):                                   
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 39, in test_csingle                                              
    self.do(a,
b)                                                           
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 135, in do                                                       
    assert_almost_equal(d,
multiply.reduce(ev))                             
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 23, in assert_almost_equal                                       
    old_assert_almost_equal(a, b, decimal=decimal,
**kw)                    
  File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py",
line 435, in
assert_almost_equal                                                 
    raise
AssertionError(msg)                                               
AssertionError:                                                             

Arrays are not almost
equal                                                 
 ACTUAL:
(8.8817841970012523e-16-4j)                                        
 DESIRED:
(5.2800000000000011-11.040000000000004j)                          

======================================================================
FAIL: test_cdouble (test_linalg.TestEig)                             
----------------------------------------------------------------------
Traceback (most recent call last):                                   
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 44, in test_cdouble                                              
    self.do(a,
b)                                                           
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 94, in do                                                        
    assert_almost_equal(dot(a, evectors), multiply(evectors,
evalues))      
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 23, in assert_almost_equal                                       
    old_assert_almost_equal(a, b, decimal=decimal,
**kw)                    
  File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py",
line 435, in
assert_almost_equal                                                 
    raise
AssertionError(msg)                                               
AssertionError:                                                             

Arrays are not almost
equal                                                 
 ACTUAL: array([[ 2.72530404+2.67511327j, 
1.92238375+1.30131653j],         
       [ 5.95809316+4.79684551j, 
3.41362547+1.42587017j]])                 
 DESIRED: array([[ 2.01388405+1.03693361j,
-1.39512658+1.87085135j],        
       [ 1.78601662+0.01838201j,
-0.10408816-3.54121552j]])                 

======================================================================
FAIL: test_csingle (test_linalg.TestEig)                             
----------------------------------------------------------------------
Traceback (most recent call last):                                   
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 39, in test_csingle                                              
    self.do(a,
b)                                                           
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 94, in do                                                        
    assert_almost_equal(dot(a, evectors), multiply(evectors,
evalues))      
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 23, in assert_almost_equal                                       
    old_assert_almost_equal(a, b, decimal=decimal,
**kw)                    
  File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py",
line 435, in
assert_almost_equal                                                 
    raise
AssertionError(msg)                                               
AssertionError:                                                             

Arrays are not almost
equal                                                 
 ACTUAL: array([[ 2.72530413+2.6751132j ,  1.92238379+1.3013165j
],         
       [ 5.95809317+4.79684544j,  3.41362548+1.42587018j]],
dtype=complex64)
 DESIRED: array([[ 2.01388407+1.03693354j, -1.39512670+1.8708514j
],        
       [ 1.78601658+0.01838197j, -0.10408816-3.54121566j]],
dtype=complex64)

======================================================================
FAIL: test_cdouble (test_linalg.TestEigh)                            
----------------------------------------------------------------------
Traceback (most recent call last):                                   
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 221, in test_cdouble                                             
   
self.do(a)                                                              
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 259, in do                                                       
    assert_almost_equal(ev,
evalues)                                        
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 23, in assert_almost_equal                                       
    old_assert_almost_equal(a, b, decimal=decimal,
**kw)                    
  File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py",
line 435, in
assert_almost_equal                                                 
    raise
AssertionError(msg)                                               
AssertionError:                                                             

Arrays are not almost
equal                                                 
 ACTUAL: array([-2.60555128, 
4.60555128])                                  
 DESIRED: array([-1.71080202-1.00413682j, 
3.01849433+1.46567528j])         

======================================================================
FAIL: test_csingle (test_linalg.TestEigh)                            
----------------------------------------------------------------------
Traceback (most recent call last):                                   
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 217, in test_csingle                                             
   
self.do(a)                                                              
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 259, in do                                                       
    assert_almost_equal(ev,
evalues)                                        
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 23, in assert_almost_equal                                       
    old_assert_almost_equal(a, b, decimal=decimal,
**kw)                    
  File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py",
line 435, in
assert_almost_equal                                                 
    raise
AssertionError(msg)                                               
AssertionError:                                                             

Arrays are not almost
equal                                                 
 ACTUAL: array([-2.60555124,  4.60555124],
dtype=float32)                   
 DESIRED: array([-1.71080208-1.0041368j ,  3.01849437+1.46567523j],
dtype=complex64)                                                                     


======================================================================
FAIL: test_cdouble (test_linalg.TestEigvalsh)                        
----------------------------------------------------------------------
Traceback (most recent call last):                                   
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 221, in test_cdouble                                             
   
self.do(a)                                                              
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 249, in do                                                       
    assert_almost_equal(ev,
evalues)                                        
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 23, in assert_almost_equal                                       
    old_assert_almost_equal(a, b, decimal=decimal,
**kw)                    
  File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py",
line 435, in
assert_almost_equal                                                 
    raise
AssertionError(msg)                                               
AssertionError:                                                             

Arrays are not almost
equal                                                 
 ACTUAL: array([-2.60555128+0.j, 
4.60555128+0.j])                          
 DESIRED: array([-1.71080202-1.00413682j, 
3.01849433+1.46567528j])         

======================================================================
FAIL: test_csingle (test_linalg.TestEigvalsh)                        
----------------------------------------------------------------------
Traceback (most recent call last):                                   
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 217, in test_csingle                                             
   
self.do(a)                                                              
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 249, in do                                                       
    assert_almost_equal(ev,
evalues)                                        
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 23, in assert_almost_equal                                       
    old_assert_almost_equal(a, b, decimal=decimal,
**kw)                    
  File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py",
line 435, in
assert_almost_equal                                                 
    raise
AssertionError(msg)                                               
AssertionError:                                                             

Arrays are not almost
equal                                                 
 ACTUAL: array([-2.60555124+0.j,  4.60555124+0.j],
dtype=complex64)         
 DESIRED: array([-1.71080208-1.0041368j ,  3.01849437+1.46567523j],
dtype=complex64)                                                                     


======================================================================
FAIL: test_cdouble (test_linalg.TestLstsq)                           
----------------------------------------------------------------------
Traceback (most recent call last):                                   
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 44, in test_cdouble                                              
    self.do(a,
b)                                                           
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 141, in do                                                       
    assert_almost_equal(b, dot(a,
x))                                       
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 23, in assert_almost_equal                                       
    old_assert_almost_equal(a, b, decimal=decimal,
**kw)                    
  File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py",
line 435, in
assert_almost_equal                                                 
    raise
AssertionError(msg)                                               
AssertionError:                                                             

Arrays are not almost
equal                                                 
 ACTUAL: array([ 2.+1.j, 
1.+2.j])                                          
 DESIRED: array([ 0.95920929+0.98311952j, 
1.23494444+0.67346351j])         

======================================================================
FAIL: test_csingle (test_linalg.TestLstsq)                           
----------------------------------------------------------------------
Traceback (most recent call last):                                   
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 39, in test_csingle                                              
    self.do(a,
b)                                                           
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 141, in do                                                       
    assert_almost_equal(b, dot(a,
x))                                       
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 23, in assert_almost_equal                                       
    old_assert_almost_equal(a, b, decimal=decimal,
**kw)                    
  File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py",
line 435, in
assert_almost_equal                                                 
    raise
AssertionError(msg)                                               
AssertionError:                                                             

Arrays are not almost
equal                                                 
 ACTUAL: array([ 2.+1.j,  1.+2.j],
dtype=complex64)                         
 DESIRED: array([ 0.95920926+0.98311943j,  1.23494434+0.67346334j],
dtype=complex64)                                                                     


======================================================================
FAIL: test_cdouble (test_linalg.TestPinv)                            
----------------------------------------------------------------------
Traceback (most recent call last):                                   
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 44, in test_cdouble                                              
    self.do(a,
b)                                                           
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 124, in do                                                       
    assert_almost_equal(dot(a, a_ginv),
identity(asarray(a).shape[0]))      
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 23, in assert_almost_equal                                       
    old_assert_almost_equal(a, b, decimal=decimal,
**kw)                    
  File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py",
line 435, in
assert_almost_equal                                                 
    raise
AssertionError(msg)                                               
AssertionError:                                                             

Arrays are not almost
equal                                                 
 ACTUAL: array([[ 0.29169056-0.07799046j, 
0.17767375-0.01332484j],         
       [ 0.04125021-0.38255608j, 
0.73402869+0.62377356j]])                 
 DESIRED: array([[ 1., 
0.],                                                
       [ 0., 
1.]])                                                         

======================================================================
FAIL: test_csingle (test_linalg.TestPinv)                            
----------------------------------------------------------------------
Traceback (most recent call last):                                   
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 39, in test_csingle                                              
    self.do(a,
b)                                                           
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 124, in do                                                       
    assert_almost_equal(dot(a, a_ginv),
identity(asarray(a).shape[0]))      
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 23, in assert_almost_equal                                       
    old_assert_almost_equal(a, b, decimal=decimal,
**kw)                    
  File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py",
line 435, in
assert_almost_equal                                                 
    raise
AssertionError(msg)                                               
AssertionError:                                                             

Arrays are not almost
equal                                                 
 ACTUAL: array([[ 0.29169053-0.07799049j,  0.17767370-0.0133248j
],         
       [ 0.04125014-0.38255614j,  0.73402858+0.62377363j]],
dtype=complex64)
 DESIRED: array([[ 1., 
0.],                                                
       [ 0., 
1.]])                                                         

======================================================================
FAIL: test_cdouble (test_linalg.TestSVD)                             
----------------------------------------------------------------------
Traceback (most recent call last):                                   
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 44, in test_cdouble                                              
    self.do(a,
b)                                                           
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 100, in do                                                       
    assert_almost_equal(a, dot(multiply(u, s),
vt))                         
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 23, in assert_almost_equal                                       
    old_assert_almost_equal(a, b, decimal=decimal,
**kw)                    
  File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py",
line 435, in
assert_almost_equal                                                 
    raise
AssertionError(msg)                                               
AssertionError:                                                             

Arrays are not almost
equal                                                 
 ACTUAL: array([[ 1.+2.j, 
2.+3.j],                                         
       [ 3.+4.j, 
4.+5.j]])                                                 
 DESIRED: array([[ 1.00000000+2.j        , 
2.36670415+2.98574489j],        
       [ 3.00000000+4.j        , 
2.80882652+6.25521741j]])                 

======================================================================
FAIL: test_csingle (test_linalg.TestSVD)                             
----------------------------------------------------------------------
Traceback (most recent call last):                                   
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 39, in test_csingle                                              
    self.do(a,
b)                                                           
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 100, in do                                                       
    assert_almost_equal(a, dot(multiply(u, s),
vt))                         
  File
"/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py",
line 23, in assert_almost_equal
    old_assert_almost_equal(a, b, decimal=decimal, **kw)
  File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py",
line 435, in assert_almost_equal
    raise AssertionError(msg)
AssertionError:
Arrays are not almost equal
 ACTUAL: array([[ 1.+2.j,  2.+3.j],
       [ 3.+4.j,  4.+5.j]], dtype=complex64)
 DESIRED: array([[ 0.99999994+2.j        ,  2.36670423+2.98574495j],
       [ 3.00000000+4.j        ,  2.80882668+6.25521755j]], dtype=complex64)


Xavier


More information about the NumPy-Discussion mailing list