コード例 #1
0
ファイル: test_expokit.py プロジェクト: alexleach/scipy
 def test_complex(self):
     a = array([[0.,1.],[0,0]])
     assert_array_almost_equal(expm(a),[[1,1],[0,1]] )
コード例 #2
0
ファイル: test_expokit.py プロジェクト: alexleach/scipy
 def test_zero(self):
     a = array([[0.,0],[0,0]])
     assert_array_almost_equal(expm(a),[[1,0],[0,1]])