On Sunday, April 11, 2010, Leo Maloney <leo.b.malo...@gmail.com> wrote:
> When I try to make a dense matrix, I get a "MemoryError: out of memory
> allocating a matrix."  I was able to output my matrix into a .txt file
> and tweak it to be read into Matlab.  Matlab was able to compute it
> pretty quickly, so I feel like it is doable in Sage as well.  Maybe I
> have a problem with my code?  I'm unsure how to fix this problem.

Do you want a floating point answer or an exact rational answer?
Matlab will not give you a correct exact rational answer (it will
appeat to in a certain mode but will in fact return nonsense).

>
> On Apr 9, 12:00 pm, William Stein <wst...@gmail.com> wrote:
>> On Friday, April 9, 2010, Leo Maloney <leo.b.malo...@gmail.com> wrote:
>> > My Matrix consists of zeros ones, and -1/9s, so I was intially
>> > computing it over Q.  I'm trying to re-run the program over R in hopes
>> > that it will use approximations rather than try to explicitly state
>> > the fractions.  I am using a Macintosh OSX with 4 gigs of ram, it
>> > seems that this should be sufficient.
>>
>> Definitely try doing it with a dense matrix over QQ too; it might be
>> possible, though the answer will be big.   If you provide me the
>> matrix I could try on my 128gb computer...  I also know the matrix
>> inversion code over QQ well, since I wrote some of it.
>>
>>
>>
>>
>>
>> > On Apr 9, 11:03 am, Robert Bradshaw <rober...@math.washington.edu>
>> > wrote:
>> >> On Apr 9, 2010, at 10:53 AM, Leo Maloney wrote:
>>
>> >> > I'm trying to compute the inverse of a 5000 x 5000 sparse matrix.
>>
>> >> What is the basering?
>>
>> >> > I'm getting an EOF error after it runs for about 5 hours, and then it
>> >> > states that sage is trying to access unallocated memory.  Is there a
>> >> > way I can increase the memory for this computation?  Every time I
>> >> > Google it, all I can find is the benefits sage(plant) has on memory.
>>
>> >> What operating system are you on. Are you using Sage in a VM (on
>> >> Windows)? If so, you can increase the amount of memory allocated to
>> >> the virtual machine. Otherwise, have you checked to see if you even
>> >> have any memory left on your computer when doing the computation?
>> >> (Perhaps the only way to increase the memory is to buy more RAM or run
>> >> it on a different computer.)
>>
>> >> - Robert
>>
>> > --
>> > 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 
>> > athttp://groups.google.com/group/sage-support
>> > URL:http://www.sagemath.org
>>
>> > To unsubscribe, reply using "remove me" as the subject.
>>
>> --
>> William Stein
>> Associate Professor of Mathematics
>> University of Washingtonhttp://wstein.org
>
> --
> 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
> URL: http://www.sagemath.org
>


-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

-- 
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
URL: http://www.sagemath.org

Reply via email to