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