此函数将矩阵类型转化为数组,与mat函数正好相反;
>>> a = [[1,2,3], [3,4,5]]
>>> matb = mat(a) # 转化为矩阵
>>> matb
matrix([[1, 2, 3],
[3, 4, 5]])
>>> type(matb).__name__
'matrix'
>>> arrC = matb.getA() # 转化为数组
>>> arrC
array([[1, 2, 3],
[3, 4, 5]])
>>> type(arrC).__name__
'ndarray'