Re: [sage-support] Question about cycles per second in SAGE

2012-02-14 Thread David Kirkby
On 14 February 2012 03:40, juaninf juan...@gmail.com wrote: Hi everybody. Exists any command in SAGE to get the spent cpu-cycles per second in SAGE? What do you mean by spent cycles per second? Time must be measured in seconds, not inverse seconds, so I assume you don't mean time. I

[sage-support] Question about download SAGE

2012-02-14 Thread juaninf
Hi everybody Please I want download the SAGE math for fedora-32bits, but i need the file with extension *.tar not tar.lzmaa, because my tar program no have support fot this extension, ... http://ftp.iitm.ac.in/sage/linux/32bit/index.html. You know where are url? to download this, (without

[sage-support] Re: speed question, numpy vs CDF

2012-02-14 Thread Pierre
Hey, thanks for all the responses. I use Cython occasionally, but i tend to restrict myself to basic C types and simple functions which do not import anything -- it seems I can learn an awful lot by studying your examples! Can i ask the following questions about Jason's code? ** why so you

[sage-support] Re: speed question, numpy vs CDF

2012-02-14 Thread Pierre
oh and a related question -- been wondering about this for a while : if i put all this in a foo.spyx file, i usually do load foo.spyx. It works, but compiles every time! how do you just load the compiled version? and what about import it like a module, using foo.function() ? On 14 fév, 18:11,

Re: [sage-support] Re: speed question, numpy vs CDF

2012-02-14 Thread William Stein
On Tue, Feb 14, 2012 at 9:11 AM, Pierre pierre.guil...@gmail.com wrote: Hey, thanks for all the responses. I use Cython occasionally, but i tend to restrict myself to basic C types and simple functions which do not import anything -- it seems I can learn an awful lot by studying your examples!

Re: [sage-support] Re: speed question, numpy vs CDF

2012-02-14 Thread William Stein
On Tue, Feb 14, 2012 at 9:14 AM, Pierre pierre.guil...@gmail.com wrote: oh and a related question -- been wondering about this for a while : if i put all this in a foo.spyx file, i usually do load foo.spyx. It works, but compiles every time! how do you just load the compiled version? and what

[sage-support] Re: speed question, numpy vs CDF

2012-02-14 Thread Pierre
Nope!  If you just want to use Python's complex data type you could rewrite the code to not use any imports. just to be clear: you mean that the first two lines of Jason's code can be deleted, the class Matrix2 would still work as such? You may find chapter 3 of this book I'm writing

[sage-support] Re: speed question, numpy vs CDF

2012-02-14 Thread Jason Grout
On 2/14/12 11:20 AM, William Stein wrote: ** and why do these imports anyway, are they necessary for cdef complex... to work? Nope! If you just want to use Python's complex data type you could rewrite the code to not use any imports. I had them because I was copying and modifying

[sage-support] Re: Question about download SAGE

2012-02-14 Thread emil
On Feb 14, 5:21 pm, juaninf juan...@gmail.com wrote: Hi everybody Please I want download the SAGE math for fedora-32bits, but i need the file with extension *.tar not tar.lzmaa, because my tar program no have support fot this extension, ...  

Re: [sage-support] Re: Question about download SAGE

2012-02-14 Thread Juan Grados
I dont permissions for this in my server 2012/2/14 emil emil.widm...@gmail.com On Feb 14, 5:21 pm, juaninf juan...@gmail.com wrote: Hi everybody Please I want download the SAGE math for fedora-32bits, but i need the file with extension *.tar not tar.lzmaa, because my tar program

[sage-support] Re: Question about download SAGE

2012-02-14 Thread emil
On Feb 14, 6:57 pm, Juan Grados juan...@gmail.com wrote: I dont permissions for this in my server Well, if there is no better solution (like asking sysadmin, or somebody uploads other package ) you could build lzma (or successor xz- utils) locally http://tukaani.org/lzma/ -- To post to

[sage-support] Re: speed question, numpy vs CDF

2012-02-14 Thread Nils Bruin
On Feb 14, 9:20 am, William Stein wst...@gmail.com wrote: PY_NEW is a macro that creates the class without calling __init__. This is an optimization. Hasn't that construction been made obsolete by Matrix2.__new__(Matrix2) ? See http://trac.cython.org/cython_trac/ticket/443. I think I used it

Re: [sage-support] Re: SAGE CPLEX

2012-02-14 Thread Nathann Cohen
Yes, I checked local/include and local/lib. CPLEX runs fine also as a 64 bit standalone. I recompiled everything with ./sage -ba, and now MixedIntegerLinearProgram(solver=CPLEX) triggers a new error message I put the log below: Hmmm... Well, I am sorry but I really have no idea what is

Re: [sage-support] Re: Question about download SAGE

2012-02-14 Thread Juan Grados
thanks! 2012/2/14 emil emil.widm...@gmail.com On Feb 14, 6:57 pm, Juan Grados juan...@gmail.com wrote: I dont permissions for this in my server Well, if there is no better solution (like asking sysadmin, or somebody uploads other package ) you could build lzma (or successor xz-

Re: [sage-support] Question about cycles per second in SAGE

2012-02-14 Thread Juan Grados
sorry, the measure is cycles/byte. sorry again, how obtain this measure in SAGE? 2012/2/14 David Kirkby david.kir...@onetel.net On 14 February 2012 03:40, juaninf juan...@gmail.com wrote: Hi everybody. Exists any command in SAGE to get the spent cpu-cycles per second in SAGE? What do