1 | initial version |
For example, you can parse such matrix printout as
s = '[1 2 3] [4 5 6] [5 6 7]'
M = Matrix(QQ, 3, 3 ,eval('['+s.replace(' ',',')+']') )
print(M)
2 | No.2 Revision |
For example, you can parse such matrix printout as
s = '[1 2 3] [4 5 6] [5 6 7]'
M = Matrix(QQ, 3, 3 ,eval('['+s.replace(' 3, eval('['+s.replace(' ',',')+']') )
print(M)
3 | No.3 Revision |
For example, you can parse such matrix printout as
s = '[1 2 3] [4 5 6] [5 6 7]'
L = eval('['+s.replace(' ',',')+']')
M = Matrix(QQ, 3, 3, eval('['+s.replace(' ',',')+']') )
len(L), len(L[0]), L)
print(M)
4 | No.4 Revision |
For example, you can parse such matrix printout as
s = '[1 2 3] [4 5 6] [5 6 7]'
L = eval('['+s.replace(' ',',')+']')
M = Matrix(QQ, len(L), len(L[0]), L)
eval('['+s.replace(' ',',')+']') )
print(M)