def PrintMatrix(mat): import numpy as np mat = np.matrix(mat) return mat