m = matrix([[1,1],[2,2]])
m.rank()
1