Hi John, On Sun, Feb 1, 2009 at 3:18 PM, John Matrix <johnmatrix...@yahoo.com> wrote: [...] > I'd like to read a very large integer dense square matrix into sage > from a file, in order to determine its rank. I could not find much > information on what format I should store the matrix in, and what > commands to use to read it. Any help would be appreciated.
If you save a matrix object to a file, you can then load it into Sage. For example: MS = MatrixSpace(base_ring = IntegerModRing(100), nrows = 12, ncols = 12) mat = MS.random_element() mat.save("matrix.dat") # saving mat to file "matrix.dat.sobj" m = load("matrix.dat") # loading mat from file; mat and m represent the same matrix Hope that helps. -- Regards Minh Van Nguyen --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---