我有一个奇怪的矩阵输出,该输出受宽度限制,如下所示,因此一次仅打印四列。我知道行和列的数量,有没有办法用python将其读入numpy数组?
重叠矩阵
1 2 3 4
1 1 He 2s 1.000000 -0.021832 0.000000 0.000000
2 1 He 3s -0.021832 1.000006 0.000000 0.000000
3 1 He 3py 0.000000 0.000000 0.999992 0.000000
4 1 He 3pz 0.000000 0.000000 0.000000 0.999992
5 1 He 3px 0.000000 0.000000 0.000000 0.000000
6 2 He 2s 0.018525 -0.049141 0.000000 -0.032037
7 2 He 3s -0.049141 0.116451 0.000000 0.039779
8 2 He 3py 0.000000 0.000000 0.007411 0.000000
9 2 He 3pz 0.032037 -0.039779 0.000000 0.005145
10 2 He 3px 0.000000 0.000000 0.000000 0.000000
5 6 7 8
1 1 He 2s 0.000000 0.018525 -0.049141 0.000000
2 1 He 3s 0.000000 -0.049141 0.116451 0.000000
3 1 He 3py 0.000000 0.000000 0.000000 0.007411
4 1 He 3pz 0.000000 -0.032037 0.039779 0.000000
5 1 He 3px 0.999992 0.000000 0.000000 0.000000
6 2 He 2s 0.000000 1.000000 -0.021832 0.000000
7 2 He 3s 0.000000 -0.021832 1.000006 0.000000
8 2 He 3py 0.000000 0.000000 0.000000 0.999992
9 2 He 3pz 0.000000 -0.000000 -0.000000 0.000000
10 2 He 3px 0.007411 0.000000 0.000000 0.000000
9 10
1 1 He 2s 0.032037 0.000000
2 1 He 3s -0.039779 0.000000
3 1 He 3py 0.000000 0.000000
4 1 He 3pz 0.005145 0.000000
5 1 He 3px 0.000000 0.007411
6 2 He 2s -0.000000 0.000000
7 2 He 3s -0.000000 0.000000
8 2 He 3py 0.000000 0.000000
9 2 He 3pz 0.999992 0.000000
10 2 He 3px 0.000000 0.999992