Re: [sage-support] How to ask users to input a matrix

2014-01-03 Thread John Cremona
Sage does not (as far as I know) have a matrix constructor from a string. You could write your own. there is an easy but dangerous way to do that: matrix(eval("[[1,2],[3,4]]")) --dangerous as the user could enter any string and on running eval it could have nasty side-effects (such as a system

[sage-support] Re: README.txt build-from-source buries fact -j8 in "make -j8" ignored -- need export MAKE="make -j8"

2014-01-03 Thread P Purkayastha
On 01/03/2014 03:28 PM, Jeroen Demeyer wrote: On 2014-01-03 01:44, P Purkayastha wrote: The parallel build in sage compiles different packages in parallel, but each package still compiles as -j1. That statement is completely not true. Sage uses both, it compiles different packages in parallel a

Re: [sage-support] Re: README.txt build-from-source buries fact -j8 in "make -j8" ignored -- need export MAKE="make -j8"

2014-01-03 Thread Jeroen Demeyer
On 2014-01-03 10:56, P Purkayastha wrote: Then I am very surprised; for two reasons - I have never seen more than one gcc process on htop while running a sage compilation with -j2 or -j4 -- maybe it has always just so happened that every time I looked at htop, it was a package without support for

[sage-support] Re: How to ask users to input a matrix

2014-01-03 Thread Jason Grout
On 1/3/14, 1:59 AM, John Cremona wrote: there is an easy but dangerous way to do that: matrix(eval("[[1,2],[3,4]]")) --dangerous as the user could enter any string and on running eval it could have nasty side-effects (such as a system call to delete all your files). It would be safer to eithe

Re: [sage-support] README.txt build-from-source buries fact -j8 in "make -j8" ignored -- need export MAKE="make -j8"

2014-01-03 Thread Jeroen Demeyer
On 2014-01-02 19:48, Robert Bradshaw wrote: How hard would it be to let "make -jN" actually work from the top-level make? Done. Needs review at http://trac.sagemath.org/ticket/15624 -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscrib

[sage-support] Re: Sage+numpy -> complex numbers drop image part in calculations with numpy functions

2014-01-03 Thread bspinnler
I fully agree with your analysis. But still the result is wrong. Should I file a bug? Is it a bug in Sage or in Numpy? I have no idea how the two work together. I'd appreciate any hint on how to proceed. Thanks, Bernhard On Friday, January 3, 2014 4:13:02 AM UTC+1, Harald Schilly wrote: > >

Re: [sage-support] Re: Sage+numpy -> complex numbers drop image part in calculations with numpy functions

2014-01-03 Thread Harald Schilly
On Fri, Jan 3, 2014 at 11:53 PM, wrote: > I fully agree with your analysis. But still the result is wrong. Should I > file a bug? Is it a bug in Sage or in Numpy? I have no idea how the two work > together. I'd appreciate any hint on how to proceed. It's definitely something which is Sage relate