In case you're curious, here are some timings for higher powers along with memory usage.
sage: s = SFASchur(QQ) sage: f = s([2,1]) sage: get_memory_usage() 515.17578125 sage: time a = f^10 CPU times: user 6.64 s, sys: 0.03 s, total: 6.67 s Wall time: 6.74 sage: get_memory_usage() 526.26171875 #11MB sage: time a = f^11 CPU times: user 30.18 s, sys: 0.05 s, total: 30.23 s Wall time: 30.98 sage: get_memory_usage() 536.171875 #21MB sage: time a = f^12 CPU times: user 116.47 s, sys: 0.13 s, total: 116.60 s Wall time: 119.75 sage: get_memory_usage() 554.5 #39MB sage: time a = f^13 CPU times: user 437.49 s, sys: 0.44 s, total: 437.94 s Wall time: 444.04 sage: get_memory_usage() 585.796875 #70MB sage: len(a) 30641 I believe that there is eventual room for improvement in the memory usage. --Mike On Dec 9, 2007 10:44 PM, BFJ <[EMAIL PROTECTED]> wrote: > > That was fast! > > Thanks for looking into the problem. I'll be doing more extensive > calculations over the next couple of weeks (I'm porting some Maple > code). I'll let you know if I run into any other problems. I'm excited > about the prospect of a 17-fold performance increase. > > Thanks very much, > > -- > [EMAIL PROTECTED] > > > On Dec 9, 11:34 pm, "Mike Hansen" <[EMAIL PROTECTED]> wrote: > > Hello, > > > > The actual issue was that I forgot to covert symmetrica's LONGINT type > > ( 22 ) over to the correct Sage type. I hadn't actually tested it > > with calculations that got up to numbers that big. I made a ticket > > for this and posted a patch:http://sagetrac.org/sage_trac/ticket/1445 > > It will be in the next version ( 2.9 ) which will come out in about 3 > > days. > > > > --Mike > > > > On Dec 9, 2007 10:01 PM, [EMAIL PROTECTED] > > > > > <[EMAIL PROTECTED]> wrote: > > > > > I'm trying to use the combinatorics features in Sage to do some Chern > > > class calculations. When I run the commands below, I get exceptions > > > that I don't know how to interpret. > > > > > The same calculation in Maple using John Stembridge's SF package > > > completes successfully using roughly 149 MB and 7.08 s CPU time. > > > > > Is this just an issue of memory limitation? If so, can (and how do) I > > > lift the limitation to access more of the 2 GB I have on the machine > > > I'm running this on? > > > > > code follows: > > > I'm using Sage 2.8.15 on an i386 Linux platform. I also tried this on > > > an Intel OS X 10.5 machine with the same result. Also, all the powers > > > of "f" from 1 to 7 work fine. f^8 and higher powers fail. > > > ----------------------------------- > > > > > sage: s=SFASchur(QQ) > > > sage: f=s([2,1]); f > > > s[2, 1] > > > sage: f^8 > > > --------------------------------------------------------------------------- > > > <type 'exceptions.NotImplementedError'> Traceback (most recent call > > > last) > > > > > /Users/benjaminjones/Desktop/sage-2.8.15-osx10.5-intel-i386-Darwin/ > > > <ipython console> in <module>() > > > > > /Users/benjaminjones/Desktop/sage-2.8.15-osx10.5-intel-i386-Darwin/ > > > local/lib/python2.5/site-packages/sage/combinat/sfa.py in > > > __pow__(self, n) > > > 881 z = A(Integer(1)) > > > 882 for i in range(n): > > > --> 883 z *= self > > > 884 return z > > > 885 > > > > > /Users/benjaminjones/Desktop/sage-2.8.15-osx10.5-intel-i386-Darwin/ > > > element.pyx in sage.structure.element.RingElement.__imul__() > > > > > . > > > . > > > . > > > . > > > > > /Users/benjaminjones/Desktop/sage-2.8.15-osx10.5-intel-i386-Darwin/ > > > symmetrica.pxi in sage.libs.symmetrica.symmetrica._py() > > > > > <type 'exceptions.NotImplementedError'>: 22 > > > sage: > > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---