<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jun 1, 2013 at 8:56 PM, Warren Weckesser <span dir="ltr"><<a href="mailto:warren.weckesser@gmail.com" target="_blank">warren.weckesser@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Sat, Jun 1, 2013 at 7:47 PM, Charles R Harris <span dir="ltr"><<a href="mailto:charlesr.harris@gmail.com" target="_blank">charlesr.harris@gmail.com</a>></span> wrote:<br>


</div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><br><div class="gmail_quote"><div><div>On Sat, Jun 1, 2013 at 4:50 PM, Warren Weckesser <span dir="ltr"><<a href="mailto:warren.weckesser@gmail.com" target="_blank">warren.weckesser@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div>I'm getting a failure and two errors with the latest master branch:<br><br>$ python -c "import numpy; numpy.test('full')"<br>Running unit tests for numpy<br>NumPy version 1.8.0.dev-dff8c94<br>




NumPy is installed in /home/warren/local_numpy/lib/python2.7/site-packages/numpy<br>Python version 2.7.4 |Anaconda 1.5.0 (64-bit)| (default, Apr 21 2013, 17:43:08) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)]<br>nose version 1.3.0<br>




.....................F...................................................................................................................................................................................................................................................................................................................S...............................................................................................................................S..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K........................................E.E.................................................................................................................................................SSS...............................................................................................................................................................................................................................................................................................................................................K........................................................................................................K......................K...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................SS..SS.....................................................................................................SSSSSSSS................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K....................................................<br>




======================================================================<br>ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose([1e-08, 1, 1000020.0000000099], [0, nan, 1000000.0])<br>----------------------------------------------------------------------<br>




Traceback (most recent call last):<br>  File "/home/warren/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest<br>    self.test(*self.arg)<br>  File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/tests/test_numeric.py", line 1253, in tst_isclose_allclose<br>




    assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y))<br>  File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/numeric.py", line 2008, in allclose<br>    return all(less_equal(abs(x-y), atol + rtol * abs(y)))<br>




RuntimeWarning: invalid value encountered in absolute<br><br>======================================================================<br>ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose(nan, [nan, nan, nan])<br>----------------------------------------------------------------------<br>




Traceback (most recent call last):<br>  File "/home/warren/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest<br>    self.test(*self.arg)<br>  File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/tests/test_numeric.py", line 1253, in tst_isclose_allclose<br>




    assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y))<br>  File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/numeric.py", line 2008, in allclose<br>    return all(less_equal(abs(x-y), atol + rtol * abs(y)))<br>




RuntimeWarning: invalid value encountered in absolute<br><br>======================================================================<br>FAIL: Test numpy dot with different order C, F<br>----------------------------------------------------------------------<br>




Traceback (most recent call last):<br>  File "/home/warren/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest<br>    self.test(*self.arg)<br>  File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/tests/test_blasdot.py", line 114, in test_dot_array_order<br>




    assert_almost_equal(a.dot(a), a.T.dot(a.T).T, decimal=30)<br>  File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/testing/utils.py", line 458, in assert_almost_equal<br>    return assert_array_almost_equal(actual, desired, decimal, err_msg)<br>




  File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/testing/utils.py", line 819, in assert_array_almost_equal<br>    header=('Arrays are not almost equal to %d decimals' % decimal))<br>  File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/testing/utils.py", line 652, in assert_array_compare<br>




    raise AssertionError(msg)<br>AssertionError: <br>Arrays are not almost equal to 30 decimals<br></div></div></blockquote></div></div><div><br>Thirty decimals? What architecture?<br></div></div></blockquote><div><br><br>

</div>
</div></div><div>`decimal=30` is used in three places in numpy/core/tests/test_blasdot.py, in the function `test_dot_array_order()`.  It looks like the argument should be `decimal=prec`.<br><br></div><div>If I make that change, the above test passes, but I get a failure in a test for array equality in the same function (lines 119-120):<br>


<br>            a_T = a.T.copy(order=a_order)<br>            assert_array_equal(a_T.dot(a_T), a.T.dot(a.T))<br><br><br></div><div>When the dtype of `a` is float32, this test fails.  <br><span class=""><font color="#888888"><br>
</font></span></div></div></div></div></blockquote><div><br></div><div>If I replace all tests of the form:<br><br>    assert_array_equal(X, Y)<br><br></div><div>with<br><br></div><div>    assert_almost_equal(X, Y, decimal=prec)<br>
<br></div><div>all the tests in the function test_doc_array_order() pass.<br><br></div><div>Warren<br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><span class=""><font color="#888888"></font></span></div><span class=""><font color="#888888"><div>Warren<br><br></div>

<div><br></div></font></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im"><div class="gmail_quote"><div> <br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div dir="ltr"><div><br>(mismatch 26.0%)<br> x: array([[ 0.60970873,  1.6909554 , -1.08851945, -1.82058012, -3.95746613,<br>         1.52435613, -0.59853059, -3.72278619,  3.82375932,  5.51367044],<br>
       [-3.58154893, -2.06231236, -0.0656727 ,  1.4737345 ,  2.6068747 ,...<br> y: array([[ 0.60970873,  1.6909554 , -1.08851945, -1.82058001, -3.95746613,<br>         1.52435613, -0.59853059, -3.72278643,  3.82375932,  5.51367044],<br>




       [-3.58154917, -2.06231236, -0.0656727 ,  1.4737345 ,  2.6068747 ,...<br><br>----------------------------------------------------------------------<br>Ran 5151 tests in 60.506s<br><br>FAILED (KNOWNFAIL=5, SKIP=17, errors=2, failures=1)<span><font color="#888888"><br>




<br><br><br></font></span></div></div></blockquote></div><div><br>I don't see any of these with<div><br><br>Running unit tests for numpy<br>NumPy version 1.8.0.dev-dff8c94<br></div>NumPy is installed in /home/charris/.local/lib/python2.7/site-packages/numpy<br>



Python version 2.7.3 (default, Aug  9 2012, 17:23:57) [GCC 4.7.1 20120720 (Red Hat 4.7.1-5)]<br>nose version 1.3.0<br><br>I'll guess it's the ancient version of gcc.<br><br>Chuck<br></div></div>
<br></div><div class="im">_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org" target="_blank">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
<br></div></blockquote></div><br></div></div>
</blockquote></div><br></div></div>