Sometimes I've used A.rows(), I think, but you'll note that we also get sage: A = matrix(55) sage: A 55 x 55 dense matrix over Integer Ring (type 'print A.str()' to see all of the entries)
I'll not include the output of A.str() :) I don't know if this is what you want, though of course one could write a script to remove the newlines... And maybe the philosophical issue is what repr() vs. str() should produce. But the default output for random objects is repr() AFAIR, not str(), at the command line, and we definitely don't want the output of all entries by default. - kcrisman On Jul 22, 4:21 pm, VictorMiller <[email protected]> wrote: > I had thought that repr(A) (where A is some object) was supposed to be > a string with property that eval(repr(A)) == A. > > However, if A is a dense matrix (whose size is above some threshold) > what I get instead is > something like: > > '212 x 212 dense matrix over Finite Field of size 2' > > I could understand is str produces this, but not repr. So if I wanted > to write out a string representing this matrix to a file (say) what > function or method should I use? > > Victor -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
