[Scipy-tickets] [SciPy] #1206: test_decomp.test_lapack_misaligned fails

SciPy Trac scipy-tickets@scipy....
Sun Jun 20 15:24:42 CDT 2010


#1206: test_decomp.test_lapack_misaligned fails
--------------------------+-------------------------------------------------
 Reporter:  schliepm      |       Owner:  somebody
     Type:  defect        |      Status:  new     
 Priority:  normal        |   Milestone:  0.8.0   
Component:  scipy.linalg  |     Version:  0.7.0   
 Keywords:                |  
--------------------------+-------------------------------------------------
 The call to solve fails:
   def test_lapack_misaligned():
       [...]
       for (func, args, kwargs) in [
           [...]
           (solve,(S,b),dict(overwrite_a=True,overwrite_b=True)),
           [...]

 Debugged so far: solve() (in linalg/basic.py) is called twice nevertheless
 that only one RHS is given. The first call changes the vector b so that
 the first 5 elements of b become Inf resp. NaN. Then the second call must
 fail because the parameter check upon the function entry fails.

 The test will be passed correctly if overwrite_b=False is specified.

 I attach the output of the test below.

 Regards,
 Michael

 ==================================================================
 ERROR: test_decomp.test_lapack_misaligned
 ------------------------------------------------------------------
 Traceback (most recent call last):
   File "nose-0.11.3-py2.6.egg/nose/case.py", line 186,
                                                  in runTest
     self.test(*self.arg)
   File "scipy/linalg/tests/test_decomp.py", line 1105,
                                   in test_lapack_misaligned
     check_lapack_misaligned(func, args, kwargs)
   File "scipy/linalg/tests/test_decomp.py", line 1074,
                                   in check_lapack_misaligned
     func(*a,**kwargs)
   File "scipy/linalg/basic.py", line 49,
                                   in solve
     a1, b1 = map(asarray_chkfinite,(a,b))
   File "numpy/lib/function_base.py", line 586,
                                   in asarray_chkfinite
     raise ValueError, "array must not contain infs or NaNs"
        ValueError: array must not contain infs or NaNs

 -------------------------------------------------------------------

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1206>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list