示例#1
0
 def test_complex(self):
     a = array([[0.,1.],[0,0]])
     assert_array_almost_equal(expm(a),[[1,1],[0,1]] )
示例#2
0
 def test_zero(self):
     a = array([[0.,0],[0,0]])
     assert_array_almost_equal(expm(a),[[1,0],[0,1]])