In [1]:
%run test_eigen_markov.py -v
================================================= test session starts ==================================================
platform darwin -- Python 2.7.8 -- py-1.4.23 -- pytest-2.6.1 -- /usr/local/opt/python/bin/python2.7
collecting ... collected 10 items
test_eigen_markov.py::test_stoch_eig_fixed_matrix PASSED
test_eigen_markov.py::test_gth_solve_fixed_matrix PASSED
test_eigen_markov.py::test_stoch_eig_randmatrix PASSED
test_eigen_markov.py::test_gth_solve_randmatrix PASSED
test_eigen_markov.py::test_stoch_eig_high_prec PASSED
test_eigen_markov.py::test_gth_solve_high_prec PASSED
test_eigen_markov.py::test_stoch_eig_fp PASSED
test_eigen_markov.py::test_gth_solve_fp PASSED
test_eigen_markov.py::test_stoch_eig_iv PASSED
test_eigen_markov.py::test_gth_solve_iv PASSED
============================================== 10 passed in 0.37 seconds ===============================================
In [2]:
# Run with VERBOSE=1
%run test_eigen_markov.py -v -s
================================================= test session starts ==================================================
platform darwin -- Python 2.7.8 -- py-1.4.23 -- pytest-2.6.1 -- /usr/local/opt/python/bin/python2.7
collecting ... collected 10 items
test_eigen_markov.py::test_stoch_eig_fixed_matrix |xP - x| (stoch_eig): 0.0
min(x) (stoch_eig): 0.0625
||x| - 1| (stoch_eig): 0.0
|xP - x| (stoch_eig): 0.0
min(x) (stoch_eig): 7.49999999999992e-29
||x| - 1| (stoch_eig): 0.0
|xP - x| (stoch_eig): 8.27180612649327e-25
min(x) (stoch_eig): 1.70901762889315e-35
||x| - 1| (stoch_eig): 0.0
PASSED
test_eigen_markov.py::test_gth_solve_fixed_matrix |xA| (gth_solve): 1.21430643318376e-17
min(x) (gth_solve): 0.0625
||x| - 1| (gth_solve): 0.0
|xA| (gth_solve): 5.98539071775889e-31
min(x) (gth_solve): 7.49999999999992e-29
||x| - 1| (gth_solve): 0.0
|xA| (gth_solve): 9.60332761504887e-20
min(x) (gth_solve): 1.70901762889315e-35
||x| - 1| (gth_solve): 0.0
PASSED
test_eigen_markov.py::test_stoch_eig_randmatrix |xP - x| (stoch_eig): 4.16333634234434e-17
min(x) (stoch_eig): 0.118448788444319
||x| - 1| (stoch_eig): 0.0
|xP - x| (stoch_eig): 2.77555756156289e-17
min(x) (stoch_eig): 0.145405440075323
||x| - 1| (stoch_eig): 0.0
|xP - x| (stoch_eig): 1.2490009027033e-16
min(x) (stoch_eig): 0.113044207028281
||x| - 1| (stoch_eig): 0.0
|xP - x| (stoch_eig): 1.38777878078145e-17
min(x) (stoch_eig): 0.119179475824428
||x| - 1| (stoch_eig): 0.0
|xP - x| (stoch_eig): 8.32667268468867e-17
min(x) (stoch_eig): 0.138963283329197
||x| - 1| (stoch_eig): 0.0
|xP - x| (stoch_eig): 8.32667268468867e-17
min(x) (stoch_eig): 0.140905060770004
||x| - 1| (stoch_eig): 0.0
|xP - x| (stoch_eig): 1.11022302462516e-16
min(x) (stoch_eig): 0.173022613458597
||x| - 1| (stoch_eig): 0.0
|xP - x| (stoch_eig): 1.11022302462516e-16
min(x) (stoch_eig): 0.154047895965151
||x| - 1| (stoch_eig): 0.0
|xP - x| (stoch_eig): 2.77555756156289e-17
min(x) (stoch_eig): 0.168487210517242
||x| - 1| (stoch_eig): 0.0
|xP - x| (stoch_eig): 2.77555756156289e-17
min(x) (stoch_eig): 0.158748746161785
||x| - 1| (stoch_eig): 0.0
PASSED
test_eigen_markov.py::test_gth_solve_randmatrix |xA| (gth_solve): 4.98387458561594e-17
min(x) (gth_solve): 0.0956295033192777
||x| - 1| (gth_solve): 0.0
|xA| (gth_solve): 5.96609308185404e-17
min(x) (gth_solve): 0.117726520991509
||x| - 1| (gth_solve): 0.0
|xA| (gth_solve): 1.03439383389457e-16
min(x) (gth_solve): 0.153758668439307
||x| - 1| (gth_solve): 0.0
|xA| (gth_solve): 8.11655850099578e-17
min(x) (gth_solve): 0.0758871385395198
||x| - 1| (gth_solve): 0.0
|xA| (gth_solve): 7.17510286879761e-17
min(x) (gth_solve): 0.109756097008395
||x| - 1| (gth_solve): 0.0
|xA| (gth_solve): 3.17292635944698e-17
min(x) (gth_solve): 0.126851443115182
||x| - 1| (gth_solve): 0.0
|xA| (gth_solve): 7.47779601876655e-17
min(x) (gth_solve): 0.139730181232058
||x| - 1| (gth_solve): 0.0
|xA| (gth_solve): 9.96562709948562e-17
min(x) (gth_solve): 0.147657882075962
||x| - 1| (gth_solve): 0.0
|xA| (gth_solve): 4.72980469976696e-17
min(x) (gth_solve): 0.053769567045124
||x| - 1| (gth_solve): 0.0
|xA| (gth_solve): 7.53784341821005e-17
min(x) (gth_solve): 0.159002371678555
||x| - 1| (gth_solve): 0.0
PASSED
test_eigen_markov.py::test_stoch_eig_high_prec |xP - x| (stoch_eig): 0.0
min(x) (stoch_eig): 0.25
||x| - 1| (stoch_eig): 0.0
PASSED
test_eigen_markov.py::test_gth_solve_high_prec |xA| (gth_solve): 0.0
min(x) (gth_solve): 0.25
||x| - 1| (gth_solve): 0.0
PASSED
test_eigen_markov.py::test_stoch_eig_fp PASSED
test_eigen_markov.py::test_gth_solve_fp PASSED
test_eigen_markov.py::test_stoch_eig_iv PASSED
test_eigen_markov.py::test_gth_solve_iv PASSED
============================================== 10 passed in 0.36 seconds ===============================================
In [2]:
Content source: oyamad/mpmath_eigen_markov
Similar notebooks: