[sage-devel] libgiac, cython interface

2013-09-24 Thread Han Frederic
Hello, I have done a cython interface for the giac library. There is a version for python and another one for sage. I have opened the following trac:http://trac.sagemath.org/ticket/15226 Details and examples are available on my page : http://www.math.jussieu.fr/~han/xcas/giacpy Best regards,

Re: [sage-devel] sage-env always sets LDFLAGS, which clobbers Numpy's distutils Fortran compiler support

2013-09-24 Thread Felix Salfelder
On Tue, Sep 24, 2013 at 10:34:11AM -0700, Bill Janssen wrote: > Hmmm, but that would replicate the fairly complicated Python code that it > already uses to determine the proper flags. > > For the moment, I've fixed it by doing an "unset LDFLAGS" in the > spkg-install file, but I think it's still

Re: [sage-devel] Re: Motivation for ElementMethods in categories

2013-09-24 Thread Robert Bradshaw
On Tue, Sep 24, 2013 at 9:02 AM, Simon King wrote: > Hi Peter, > > On 2013-09-24, Peter Bruin wrote: >> We already have FieldElement, which is a Cython class consisting of >> methods, including is_unit(). Ignoring my opinion about C.ElementMethods >> for a moment, why not just move the existing

Re: [sage-devel] sage-env always sets LDFLAGS, which clobbers Numpy's distutils Fortran compiler support

2013-09-24 Thread Bill Janssen
Hmmm, but that would replicate the fairly complicated Python code that it already uses to determine the proper flags. For the moment, I've fixed it by doing an "unset LDFLAGS" in the spkg-install file, but I think it's still a Sage bug to export empty LDFLAGS if the user hasn't set them that wa

[sage-devel] Re: Motivation for ElementMethods in categories

2013-09-24 Thread Simon King
Hi Peter, On 2013-09-24, Peter Bruin wrote: > We already have FieldElement, which is a Cython class consisting of > methods, including is_unit(). Ignoring my opinion about C.ElementMethods > for a moment, why not just move the existing methods in > FieldsElementMethods to FieldElement and the

[sage-devel] Re: Motivation for ElementMethods in categories

2013-09-24 Thread Peter Bruin
Hi Simon, >From my perspective, the only potential issue is speed. Even a Python > function returning the constant "True" is quite slow. But I think, if > speed matters, it should be possible to have a separate Cython module > providing a class, say, > sage.categories.element_methods.FieldElem

[sage-devel] build error of flint on opensuse 12.2 (x86_64)

2013-09-24 Thread Shahab Asgharzadeh
I tried building in from source and this is the error I got. any help would be greatly appreciated. Thanks! Shahab C compiler: gcc C compiler version: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/data2/sage-5.11/local/lib/gcc

Re: [sage-devel] Re: Build Error in gf2x package on AMD Athlon XP 2600+

2013-09-24 Thread Emmanuel Thomé
You're right about rand(). printf() does not matter here, as using the computed value via the return code of main() suffices to "use" the value as far as optimization is concerned. Checked in a new test. E. On Tue, Sep 24, 2013 at 10:55 AM, Andrew Fiori wrote: > On closer inspection, the s

Re: [sage-devel] Re: Build Error in gf2x package on AMD Athlon XP 2600+

2013-09-24 Thread Andrew Fiori
On closer inspection, the sse2 test code in: http://www.loria.fr/~thome/vrac/gf2x-201309240733-4b5636d.tar.gz the previously linked http://www.loria.fr/~thome/vracgf2x-201309232352-49027b2.tar.gz and the code above all compile (gcc -msse2 test.c), however when they are run the output of: .