python 矩阵转置

python矩阵转置的两种方法

Set=np.mat([[1,2,3],[4,5,6],[7,8,9]])
print("原矩阵",Set)
print("转置1
",Set.T)
print("转置2
",np.transpose(Set))
原文地址:https://www.cnblogs.com/easyidea/p/11365645.html