Skip to content

Instantly share code, notes, and snippets.

@pv
Created September 20, 2013 17:47
Show Gist options
  • Select an option

  • Save pv/6641168 to your computer and use it in GitHub Desktop.

Select an option

Save pv/6641168 to your computer and use it in GitHub Desktop.
Building, see build.log...
Build OK
Running unit tests for scipy.sparse.linalg
NumPy version 1.7.1
NumPy is installed in /usr/lib/python2.7/dist-packages/numpy
SciPy version 0.14.0.dev-d226bd4
SciPy is installed in /home/pauli/prj/scipy/scipy/build/testenv/lib/python2.7/site-packages/scipy
Python version 2.7.4 (default, Apr 19 2013, 18:28:01) [GCC 4.7.3]
nose version 1.3.0
..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F...F.........................FF..logm result may be inaccurate, approximate err = 3.58362199136e-05
FFF..F........SS.S.
======================================================================
FAIL: test_expm_multiply_interval_matrix (test_expm_multiply.TestExpmActionInterval)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pauli/prj/scipy/scipy/build/testenv/lib/python2.7/site-packages/scipy/sparse/linalg/tests/test_expm_multiply.py", line 190, in test_expm_multiply_interval_matrix
assert_allclose(solution, scipy.linalg.expm(t*A).dot(B))
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 1179, in assert_allclose
verbose=verbose, header=header)
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 645, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0
(mismatch 100.0%)
x: array([[-1.472]])
y: array([[-1.193]])
======================================================================
FAIL: test_expm_multiply_interval_vector (test_expm_multiply.TestExpmActionInterval)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pauli/prj/scipy/scipy/build/testenv/lib/python2.7/site-packages/scipy/sparse/linalg/tests/test_expm_multiply.py", line 173, in test_expm_multiply_interval_vector
assert_allclose(solution, scipy.linalg.expm(t*A).dot(v))
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 1179, in assert_allclose
verbose=verbose, header=header)
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 645, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0
(mismatch 100.0%)
x: array([-1.472])
y: array([-1.193])
======================================================================
FAIL: test_burkardt_6 (test_matfuncs.TestExpM)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pauli/prj/scipy/scipy/build/testenv/lib/python2.7/site-packages/scipy/sparse/linalg/tests/test_matfuncs.py", line 307, in test_burkardt_6
assert_allclose(actual, desired)
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 1179, in assert_allclose
verbose=verbose, header=header)
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 645, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0
(mismatch 100.0%)
x: array([[ 2.718, -0.549],
[ 0. , 2.718]])
y: array([[ 2.718, 2.718],
[ 0. , 2.718]])
======================================================================
FAIL: test_burkardt_7 (test_matfuncs.TestExpM)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pauli/prj/scipy/scipy/build/testenv/lib/python2.7/site-packages/scipy/sparse/linalg/tests/test_matfuncs.py", line 325, in test_burkardt_7
assert_allclose(actual, desired)
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 1179, in assert_allclose
verbose=verbose, header=header)
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 645, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0
(mismatch 100.0%)
x: array([[ 2.718, -0.549],
[ 0. , 2.718]])
y: array([[ 2.718, 2.718],
[ 0. , 2.718]])
======================================================================
FAIL: test_logm_consistency (test_matfuncs.TestExpM)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pauli/prj/scipy/scipy/build/testenv/lib/python2.7/site-packages/scipy/sparse/linalg/tests/test_matfuncs.py", line 146, in test_logm_consistency
assert_array_almost_equal(expm(logm(A)), A)
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 812, in assert_array_almost_equal
header=('Arrays are not almost equal to %d decimals' % decimal))
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 645, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 6 decimals
(mismatch 100.0%)
x: array([[ 1.079]])
y: array([[ 1.079]])
======================================================================
FAIL: test_padecases_dtype_complex (test_matfuncs.TestExpM)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pauli/prj/scipy/scipy/build/testenv/lib/python2.7/site-packages/scipy/sparse/linalg/tests/test_matfuncs.py", line 115, in test_padecases_dtype_complex
assert_array_almost_equal_nulp(observed, expected, nulp=100)
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 1241, in assert_array_almost_equal_nulp
raise AssertionError(msg)
AssertionError: X and Y are not equal to 100 ULP
======================================================================
FAIL: test_padecases_dtype_float (test_matfuncs.TestExpM)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pauli/prj/scipy/scipy/build/testenv/lib/python2.7/site-packages/scipy/sparse/linalg/tests/test_matfuncs.py", line 107, in test_padecases_dtype_float
assert_array_almost_equal_nulp(observed, expected, nulp=100)
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 1241, in assert_array_almost_equal_nulp
raise AssertionError(msg)
AssertionError: X and Y are not equal to 100 ULP (max is 766)
======================================================================
FAIL: test_triangularity_perturbation (test_matfuncs.TestExpM)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pauli/prj/scipy/scipy/build/testenv/lib/python2.7/site-packages/scipy/sparse/linalg/tests/test_matfuncs.py", line 169, in test_triangularity_perturbation
assert_allclose(expm(A_logm), A, rtol=1e-4)
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 1179, in assert_allclose
verbose=verbose, header=header)
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 645, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=0.0001, atol=0
(mismatch 100.0%)
x: array([[ 3.235e-01, 3.000e+04, 4.554e+07, -1.470e+14],
[ 0.000e+00, 3.009e-01, 3.000e+04, 7.385e+07],
[ 0.000e+00, 0.000e+00, 3.221e-01, 3.000e+04],
[ 0.000e+00, 0.000e+00, 0.000e+00, 3.074e-01]])
y: array([[ 3.235e-01, 3.000e+04, 3.000e+04, 3.000e+04],
[ 0.000e+00, 3.009e-01, 3.000e+04, 3.000e+04],
[ 0.000e+00, 0.000e+00, 3.221e-01, 3.000e+04],
[ 0.000e+00, 0.000e+00, 0.000e+00, 3.074e-01]])
Name Stmts Miss Cover Missing
---------------------------------------------------------------------------
scipy.sparse.linalg 12 12 0% 106-119
scipy.sparse.linalg._expm_multiply 261 57 78% 4-15, 18, 23, 31, 39, 48, 116, 142, 144, 146, 154, 161, 169, 174, 197-243, 245, 247, 253-263, 268, 273, 316-327, 346, 351, 354, 363, 370, 395, 413, 449, 471, 507, 550, 552, 554, 562, 578, 622-625, 634, 663
scipy.sparse.linalg._onenormest 172 30 83% 4-15, 76, 85, 89, 110, 115, 121, 126, 131, 138, 152, 156, 161, 166, 170, 253, 255, 259-261, 272, 316, 318, 321
scipy.sparse.linalg.dsolve 5 5 0% 54-64
scipy.sparse.linalg.dsolve.linsolve 113 29 74% 1-26, 49, 101-102, 105, 126, 142-143, 163, 227, 237, 292, 299, 304, 345
scipy.sparse.linalg.dsolve.umfpack 5 5 0% 174-180
scipy.sparse.linalg.dsolve.umfpack._umfpack 354 338 5% 9-245, 252-259, 267-275, 279-283, 287-447, 454-461, 468-475, 482-489, 496-503, 507-511, 515-519, 523-527, 531-535, 539-546, 550-557, 564-572, 580-586
scipy.sparse.linalg.dsolve.umfpack.umfpack 247 116 53% 8-31, 41-46, 54, 62-246, 251-273, 284, 292, 311, 317-338, 343-347, 354-358, 362, 365, 372, 397, 407, 435-445, 448-482, 491, 499, 509, 524, 529-536, 540-542, 565-570, 574-576, 583, 600, 605-606, 616-639, 665, 692, 712
scipy.sparse.linalg.eigen 7 7 0% 9-17
scipy.sparse.linalg.eigen.arpack 2 2 0% 20-22
scipy.sparse.linalg.eigen.arpack.arpack 630 168 73% 39-280, 285-297, 303-304, 307, 312, 315, 358, 364-368, 372-373, 429, 431, 433, 440, 442, 444, 453, 455, 469, 471, 473, 480, 482, 497, 500, 503, 509, 516, 526, 555, 564-566, 578, 589-590, 629, 631, 633, 640, 642, 644, 653, 656, 664, 679, 682, 685, 691, 710, 739, 748-750, 771, 803, 833, 852, 859-860, 871, 880-883, 886-887, 891-897, 902, 912-918, 922, 926-932, 943-944, 947, 950, 956-962, 986, 989, 992, 995, 1001, 1012, 1014, 1049, 1200, 1203-1204, 1216, 1219, 1228, 1236-1237, 1243, 1250, 1253, 1257, 1262-1263, 1279, 1456, 1459, 1472, 1475, 1478, 1481-1482, 1487, 1494, 1502, 1510-1511, 1516, 1526-1527, 1541, 1553, 1561, 1573, 1625
scipy.sparse.linalg.eigen.lobpcg 4 4 0% 102-107
scipy.sparse.linalg.eigen.lobpcg.lobpcg 301 125 58% 13-31, 35-38, 65, 70-82, 90-100, 119, 123, 130-138, 146, 161, 232, 238, 242, 253, 258, 266, 271, 276-294, 300-313, 353, 366, 370-371, 374-375, 378-380, 382, 398, 445-447, 451-453, 456-457, 467, 475, 483-484, 510-513, 528-529, 532-535, 538, 543-584
scipy.sparse.linalg.interface 198 76 62% 1-71, 76, 84, 96, 103, 146, 150, 177, 182, 187, 191, 194, 207-209, 213, 217-219, 223-225, 229-231, 234, 237-247, 254-255, 258, 265, 268, 271, 275-276, 279, 286, 289, 292, 296-297, 299, 301, 307, 310, 313, 317-318, 320, 324, 330, 336, 339, 342, 346-347, 357, 363-364, 368, 371, 374-381, 406, 426
scipy.sparse.linalg.isolve 10 10 0% 3-15
scipy.sparse.linalg.isolve.iterative 367 47 87% 3-78, 90-95, 140-141, 156-160, 199, 202-203, 218-222, 262-263, 278-281, 321-322, 337-338, 415-416, 459-460, 499-500, 624-625
scipy.sparse.linalg.isolve.lgmres 94 13 86% 4-14, 20, 110, 134, 148-149, 223
scipy.sparse.linalg.isolve.lsmr 172 47 73% 19-31, 161-166, 228, 232-239, 354, 356, 363, 365, 372-386, 394-402
scipy.sparse.linalg.isolve.lsqr 198 54 73% 52-61, 82, 96, 252, 269-278, 330-331, 337-344, 394, 429, 446, 448, 450, 456, 458, 472, 474, 482-486, 494-504
scipy.sparse.linalg.isolve.minres 208 66 68% 1-44, 72-75, 102, 104, 112-128, 148-150, 172, 178, 231, 253, 260, 266, 291-298, 307-312, 322-339
scipy.sparse.linalg.isolve.utils 62 22 65% 1-22, 26, 30-34, 78, 85, 92, 95-102, 112, 133
scipy.sparse.linalg.matfuncs 270 80 70% 11-65, 84, 87, 98, 107, 117, 127, 141, 164, 166, 179, 183-185, 187, 189, 196-206, 211, 216-221, 225, 233, 240-250, 255, 261, 302, 341-350, 358, 364, 370, 376, 382, 389, 396, 403, 413, 437, 516, 545-548, 579, 603, 652, 670
---------------------------------------------------------------------------
TOTAL 3692 1313 64%
----------------------------------------------------------------------
Ran 899 tests in 8.367s
FAILED (SKIP=3, failures=8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment