How to modify the index of a matrix

20 views
Skip to first unread message

Emmanuel Zuñiga

unread,
Apr 20, 2020, 4:01:24 PM4/20/20
to sage-support
Hello, i would like to know how to modify the index of a matrix in sagemath. As an example, we all know that every object begins in 0, m[0] and that kind of things.
Now, i need to modify this. to add one to the index, not beggining in 0, i want it that the matrix index begin in 1 for rows and columns. I will appreciate your answer.
Thanks!

John H Palmieri

unread,
Apr 20, 2020, 4:07:08 PM4/20/20
to sage-support
It might help if you let us know what you're hoping to accomplish. For example, would it be good enough to, instead of work with 3x3 matrices, work with 4x4 matrices with zeroes in the 0th row and column? Then all of the potential nonzero entries will start in row 1, column 1.

Reply all
Reply to author
Forward
0 new messages