[sage-support] cpu time

2013-12-21 Thread Kannappan Sampath
Hi, I'd like to know how to get some idea on the runtime of a certain program. In particular, I'd like to know the following: how to run the program for various values of input, say parametrised by the set of positive integers and extract the cpu time required for the computation. Thank you,

[sage-support] Re: cpu time

2013-12-21 Thread Simon King
Hi Kannappan, On 2013-12-21, Kannappan Sampath kntri...@gmail.com wrote: I'd like to know how to get some idea on the runtime of a certain program. In particular, I'd like to know the following: how to run the program for various values of input, say parametrised by the set of positive

[sage-support] Re: Sage log in problem

2013-12-21 Thread Minh Nguyen
Hi, Sorry for the late reply. My guess is that you're having problem with your SageMath cloud account at https://cloud.sagemath.com/ In that case, I'm not the right person to contact. You should contact either William Stein at wst...@uw.edu or the sage-support mailing list. On Tue, Dec 17,

[sage-support] Re: Sage 5.13 : R loses its graphics...

2013-12-21 Thread Emmanuel Charpentier
Le vendredi 20 décembre 2013 19:40:58 UTC+1, Volker Braun a écrit : The new developer manual explains how to use git and the new way to package stuff. It should be in SAGE_ROOT/src/doct/output/en/developer. Feel free to ask if you run into any problems... This is now trac#15561

Re: [sage-support] Re: Sage log in problem

2013-12-21 Thread William Stein
On Sat, Dec 21, 2013 at 5:25 AM, Minh Nguyen mvngu.n...@gmail.com wrote: Hi, Sorry for the late reply. My guess is that you're having problem with your SageMath cloud account at https://cloud.sagemath.com/ In that case, I'm not the right person to contact. You should contact either

Re: [sage-support] Re: cpu time

2013-12-21 Thread Kannappan Sampath
Hi! Thank you! That was helpful! But, we have just observed the following problems with this command. First of all, there are no subprocesses being called, as far as I can see. We are just working with block_matrix(), matrix() commands, which are native to sage. But, even with this, given one's

Re: [sage-support] Re: cpu time

2013-12-21 Thread Volker Braun
Use timeit() for precise measurements. Note that it measures wall time, not cpu time. On Saturday, December 21, 2013 4:29:19 PM UTC, KnS wrote: Hi! Thank you! That was helpful! But, we have just observed the following problems with this command. First of all, there are no subprocesses

Re: [sage-support] Re: cpu time

2013-12-21 Thread Kannappan Sampath
Hi Volker, Thank you for the answer. We want just the time part of the output and capture it in a variable if possible. The return type of the timeit() function seems to be None. So, how do you work around it? With Sincere Regards, Kannappan. On Sat, Dec 21, 2013 at 10:04 PM, Volker Braun

Re: [sage-support] Re: cpu time

2013-12-21 Thread Volker Braun
You can do this to get a return value, though its not particularly user-friendly. It would be nice if timeit would return a ElapsedTime class (or so) that can easily be converted/compared. In any case: import sage.misc.sage_timeit_class s = sage.misc.sage_timeit.sage_timeit('10^10', globals())

Re: [sage-support] Re: cpu time

2013-12-21 Thread John H Palmieri
According to the docstring for timeit, This method prints the timing information and does not return anything, except if the option seconds=True was passed, in which case the wall time in seconds is returned. So timeit('...', seconds=True) might do what you want. On Saturday, December

Re: [sage-support] Re: cpu time

2013-12-21 Thread Volker Braun
Oh yes, forgot about that one! On Saturday, December 21, 2013 6:14:40 PM UTC, John H Palmieri wrote: According to the docstring for timeit, This method prints the timing information and does not return anything, except if the option seconds=True was passed, in which case the wall

[sage-support] Re: selective update in @interact?

2013-12-21 Thread Jason Grout
On 12/19/13, 1:43 PM, Fred Gruber wrote: No. When you press the update button it will re-execute everything inside the interact which may take a long time. I manage to do this by keeping a state variable that is check with if clauses to decide what to run. I wonder if there is a better way?

Re: [sage-support] Re: cpu time

2013-12-21 Thread Kannappan Sampath
Hi everybody, John's suggestion worked out quite well! Thank you everybody for being patient and helping me out there! Regards, Kannappan. On Sat, Dec 21, 2013 at 11:50 PM, Volker Braun vbraun.n...@gmail.comwrote: Oh yes, forgot about that one! On Saturday, December 21, 2013 6:14:40 PM

[sage-support] Re: Failed compile of Sage 5.13, ATLAS spkg on PowerBook G4, OS X 10.5.8

2013-12-21 Thread Alexander Power
kcrisman, Thanks for your prompt reply. I am no longer building Atlas. However, I did *export SAGE_ATLAS_ARCH=PPCG4,AltiVec* before attempting to build Sage. Other environment variables that were exported: SAGE_CHECK=yes SAGE_SPKG_INSTALL_DOCS=yes SAGE_MATPLOTLIB_GUI=yes