[sage-support] C/ Fortran/ .... code generation ?

2008-07-05 Thread Thierry Dumont
Hello, My question is: is there / will there be some tool for code generation in Sage ? Many people involved (like me) in scientific computing (implementation of numerical methods) use computer algebra tools for the generation of C (or Fortran, or matlab, or...) code. For example, if you

[sage-support] Re: Performance problem in sage-3.0.2 and sage-3.0.3

2008-07-05 Thread Daryl Hammond
David, I re-installed sage-3.0.2 from source and then ran your test against sage-3.0.1 and sage-3.0.2. The run times were comparable. [EMAIL PROTECTED] sage]$ /home/daryl/sage-3.0.1/sage -- | SAGE Version 3.0.1, Release Date:

[sage-support] Re: C/ Fortran/ .... code generation ?

2008-07-05 Thread Harald Schilly
On Jul 5, 9:16 am, Thierry Dumont [EMAIL PROTECTED] wrote:   Hello, My question is: is there / will there  be some tool for code generation in Sage ? Hi, I understand what you want to do, but as far as I understand, this is only needed, because of the performance? There are already tools ins

[sage-support] Re: graphviz installation problem

2008-07-05 Thread iSAGE
Sorry, a little correction: I issued the command sage -i graphviz-2.16.1.p0 which gave errors, but nauty could be installed without trouble. On Jul 5, 11:33 am, iSAGE [EMAIL PROTECTED] wrote: I get the following errors while trying to install graphviz. I am using ubuntu 8.04 and

[sage-support] Re: C/ Fortran/ .... code generation ?

2008-07-05 Thread mabshoff
On Jul 5, 3:02 am, Harald Schilly [EMAIL PROTECTED] wrote: On Jul 5, 9:16 am, Thierry Dumont [EMAIL PROTECTED] wrote:   Hello, My question is: is there / will there  be some tool for code generation in Sage ? It has been discussed of doing something like that recently at Sage Dev1.

[sage-support] Re: graphviz installation problem

2008-07-05 Thread iSAGE
I just installed the ubuntu package libfreetype6-dev, and verified that it has put several header files in /usr/include/freetype2/ freetype But I still get the compilation errors. In my sage installation in the directory /usr/local/sage-3.0.2-ubuntu32-intel-i686-Linux/local/include/

[sage-support] Re: Performance problem in sage-3.0.2 and sage-3.0.3

2008-07-05 Thread David Harvey
On Jul 5, 2008, at 3:27 AM, Daryl Hammond wrote: Finally I spent several hours trying to reduce the SAGE code down to the smallest number of lines that would still present the problem. I believe I've done that with the following: cat /home/daryl/UserData/sage/add.sage # 2008-07-04 DWH

[sage-support] Re: C/ Fortran/ .... code generation ?

2008-07-05 Thread Thierry Dumont
mabshoff a écrit : Nope, I think Harald misunderstood you. The goal is to specify say some finite element and then have logic to produce C or Fortran code that can be dumped to file and then copy and pasted into someones C or Fortran code without the need to depend on Sage. I have seen

[sage-support] Re: C/ Fortran/ .... code generation ?

2008-07-05 Thread Robert Bradshaw
Yes, there will definitely be code to do this. I've got a lot of ideas but haven't gotten around to it because most of my sage development efforts been spent on coercion. - Robert On Jul 5, 2008, at 12:16 AM, Thierry Dumont wrote: Hello, My question is: is there / will there be some

[sage-support] Re: coercion question

2008-07-05 Thread Robert Bradshaw
On Jul 4, 2008, at 1:52 PM, John H Palmieri wrote: On Jul 4, 10:53 am, Robert Bradshaw [EMAIL PROTECTED] wrote: On Jul 4, 2008, at 10:44 AM, John H Palmieri wrote: So I'm very confused. Any ideas what I should look at to try to fix this? Yes, Sage caches some information so

[sage-support] Re: graphviz installation problem

2008-07-05 Thread William Stein
On Sat, Jul 5, 2008 at 6:01 AM, iSAGE [EMAIL PROTECTED] wrote: I just installed the ubuntu package libfreetype6-dev, and verified that it has put several header files in /usr/include/freetype2/ freetype But I still get the compilation errors. In my sage installation in the directory

[sage-support] Re: coercion question

2008-07-05 Thread John H Palmieri
On Jul 5, 10:08 am, Robert Bradshaw [EMAIL PROTECTED] wrote: On Jul 4, 2008, at 1:52 PM, John H Palmieri wrote: On Jul 4, 10:53 am, Robert Bradshaw [EMAIL PROTECTED] wrote: On Jul 4, 2008, at 10:44 AM, John H Palmieri wrote: So I'm very confused.  Any ideas what I should look at

[sage-support] Re: coercion question

2008-07-05 Thread Robert Bradshaw
On Jul 5, 2008, at 12:50 PM, John H Palmieri wrote: On Jul 5, 10:08 am, Robert Bradshaw [EMAIL PROTECTED] wrote: On Jul 4, 2008, at 1:52 PM, John H Palmieri wrote: I still don't understand two things: why the gen method is being used, and why if I multiply an element of

[sage-support] Re: coercion question

2008-07-05 Thread Robert Bradshaw
On Jul 5, 2008, at 12:42 PM, John H Palmieri wrote: Ah, it looks like your __eq__ method is assuming that self and other are elements of the steenrod algebra. There are two solutions to this: 1) Use __cmp__ which (in Sage) will ensure that self and other have the same parent before

[sage-support] online sage and vista.

2008-07-05 Thread adrian
I don't know if this problem is common one: I was working in vista. It logged in into sage via the sage website. I had two 3d graphs of a sphere. Then java correctly showed me the one I was looking. But the second jmol appeared black. And it said: script terminated. Any ideas? Has the

[sage-support] Re: coercion question

2008-07-05 Thread John H Palmieri
On Jul 5, 5:48 pm, Robert Bradshaw [EMAIL PROTECTED] wrote: On Jul 5, 2008, at 12:42 PM, John H Palmieri wrote: Ah, it looks like your __eq__ method is assuming that self and   other are elements of the steenrod algebra. There are two solutions to this: 1) Use __cmp__ which (in

[sage-support] Re: coercion question

2008-07-05 Thread John H Palmieri
On Jul 5, 8:39 pm, Robert Bradshaw [EMAIL PROTECTED] wrote: On Jul 5, 2008, at 7:16 PM, John H Palmieri wrote: would be good enough?  (That is, assuming I've defined a reasonable __eq__ method for the parents, the SteenrodAlgebra class.) Yes, though that will mean something like