| 1 | initial version |
I don't believe so.
sage: [A[z][z] for z in range(A.nrows())]
[3, 6, 7]
could work. But I don't know that this is what you are looking for. Would you find this useful as an attribute? What output would be expected for a non-square matrix?
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.