python矩阵转置的两种方法
Set=np.mat([[1,2,3],[4,5,6],[7,8,9]]) print("原矩阵",Set) print("转置1\n",Set.T) print("转置2\n",np.transpose(Set))
python矩阵转置的两种方法
Set=np.mat([[1,2,3],[4,5,6],[7,8,9]]) print("原矩阵",Set) print("转置1\n",Set.T) print("转置2\n",np.transpose(Set))
转载于:https://www.cnblogs.com/easyidea/p/11365645.html