Re: [sage-devel] Sagemath : wild experiments

2015-02-05 Thread Vincent Delecroix
Hi, Still got two packages missing. See below. 2015-02-05 8:08 UTC+01:00, Julien Puydt : >> flintqs will not come from debian! > > The debian package is flintqs. I did not find this one (in testing). >> polybori will not come from debian! > > Should come from debian-science's git and will give

Re: [sage-devel] sage -t src/sage/repl/notebook_ipython.py # 9 doctests failed

2015-02-05 Thread Jeroen Demeyer
On 2015-02-05 01:37, Toan Trac wrote: sage -t src/sage/repl/notebook_ipython.py # 9 doctests failed And what exactly are the failed tests...? -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emai

[sage-devel] Asymptotic Expressions in Sage

2015-02-05 Thread Benjamin Hackl
Hello everyone! I just wanted to let you know -- as suggested in https://groups.google.com/forum/#!topic/sage-devel/uR_bv7PrZpk -- that Clemens Heuberger, Daniel Krenn, and myself are currently working on improving the situation of asymptotic expressions in Sage. In order to do so, we have cre

[sage-devel] singular 4.0.1 upgrade: cython compile for 'plural' peeks wrong lib

2015-02-05 Thread Jakob Kroeker
I'm getting a strange cython behaviour when compiling u/jakobkroeker/ticket.17254.squashed , cython tries to pick -lsingular instead of -lSingular when compiling plur

[sage-devel] Re: singular 4.0.1 upgrade: cython compile for 'plural' peeks wrong lib

2015-02-05 Thread Jakob Kroeker
Now I tracked the issue down and solved it: libs for plural in 'src/module_list.py' were incorrect. Since I'm new to python/cython, i didn't knew that and grep for 'singular' was not an option (too many hits) Sorry for the noise. Jakob Am Donnerstag, 5. Februar 2015 13:38:34 UTC+1 schrieb Ja

[sage-devel] Re: how to explicitly recompile the python part of sage (no pkgs)

2015-02-05 Thread Jakob Kroeker
rebuild a package worked as described (sage -f singular), thanks! However, I have problems with 'sage -b': sometimes it does not rebuild all python and cython stuff, even not after a 'ccache -C' and 'make clean'. Do I miss something? Jakob Am Montag, 2. Februar 2015 16:15:36 UTC+1 schrieb

Re: [sage-devel] Re: how to explicitly recompile the python part of sage (no pkgs)

2015-02-05 Thread Jeroen Demeyer
On 2015-02-05 14:13, Jakob Kroeker wrote: rebuild a package worked as described (sage -f singular), thanks! However, I have problems with 'sage -b': sometimes it does not rebuild all python and cython stuff Use ./sage -ba to explicitly rebuild everything (although it's a bug if ./sage -b doesn

[sage-devel] Re: Can a Parent have different Element classes?

2015-02-05 Thread Volker Braun
How often do you think people want to compute the image under the identity map? If that is a common code path you could just have an cached is_identity() and check it before doing the matrix multiplication. Writing a specialization for a particular value precisely saves you that one check of a

Re: [sage-devel] Sagemath : wild experiments

2015-02-05 Thread Julien Puydt
Hi, Le 05/02/2015 10:56, Vincent Delecroix a écrit : Hi, Still got two packages missing. See below. 2015-02-05 8:08 UTC+01:00, Julien Puydt : flintqs will not come from debian! The debian package is flintqs. I did not find this one (in testing). Hmmm... if it hasn't propagated to testin

Re: [sage-devel] Re: .one() vs .one_element()

2015-02-05 Thread Nicolas M. Thiery
On Fri, Jan 30, 2015 at 12:15:25PM +0100, Nathann Cohen wrote: > > +1 to using .zero() and .one() and to deprecating .zero_element() and > > .one_element(). +1 as well. Thanks! Nicolas -- Nicolas M. Thiéry "Isil" http://Nicolas.Thiery.name/ -- You received this m

[sage-devel] Re: Can a Parent have different Element classes?

2015-02-05 Thread Eric Gourgoulhon
Hi, Le jeudi 5 février 2015 15:15:54 UTC+1, Volker Braun a écrit : > > How often do you think people want to compute the image under the identity > map? If that is a common code path you could just have an cached > is_identity() and check it before doing the matrix multiplication. > > Writing a

Re: [sage-devel] Sagemath : wild experiments

2015-02-05 Thread Vincent Delecroix
Hello, 2015-02-05 15:37 UTC+01:00, Julien Puydt : > Hi, > > Le 05/02/2015 10:56, Vincent Delecroix a écrit : >> Hi, >> >> Still got two packages missing. See below. >> >> 2015-02-05 8:08 UTC+01:00, Julien Puydt : flintqs will not come from debian! >>> >>> The debian package is flintqs. >> >>

[sage-devel] Is it possible to support drawing ROI on image with interact widget

2015-02-05 Thread Will Ouyang
Hi everyone, Sage notebook is cool, and I am creating some web app with sage cell server. The problem is, I would like to let my user draw a Region Of Interest (such as point, rectangle, oval etc.) on an image, but currently I can't find such a widget allow me to do that. Any suggestion on h

Re: [sage-devel] Sagemath : wild experiments

2015-02-05 Thread Julien Puydt
Hi, Le 05/02/2015 16:18, Vincent Delecroix a écrit : Hello, 2015-02-05 15:37 UTC+01:00, Julien Puydt : Hmmm... if it hasn't propagated to testing yet, then use debian-science's git repository. $ git clone https://anonscm.debian.org/git/debian-science/packages/flintqs.git Cloning into 'flintq

Re: [sage-devel] Sagemath : wild experiments

2015-02-05 Thread Vincent Delecroix
2015-02-05 16:52 UTC+01:00, Julien Puydt : > Hi, > > Le 05/02/2015 16:18, Vincent Delecroix a écrit : >> Hello, >> >> 2015-02-05 15:37 UTC+01:00, Julien Puydt : >>> Hmmm... if it hasn't propagated to testing yet, then use >>> debian-science's git repository. >> >> $ git clone >> https://anonscm.deb

Re: [sage-devel] Re: Can a Parent have different Element classes?

2015-02-05 Thread Jeroen Demeyer
On 2015-02-05 16:13, Eric Gourgoulhon wrote: What about isomorphisms ? Shall one use a cached is_isomorphism and implement an __invert__() method for all elements, raising an error if is_isomorphism is False ? If it's not an isomorphism, I expect the computation of the inverse to fail somewhere.

Re: [sage-devel] Sagemath : wild experiments

2015-02-05 Thread Vincent Delecroix
Hello, After all packages installed the compilation of the sage library failed. There is a problem with pari headers. I do have the pari headers in /usr/include/x86_64-linux-gnu/pari/ but there is no pari/anal.h there! Vincent PS: the end of the log x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1

Re: [sage-devel] Sagemath : wild experiments

2015-02-05 Thread Jeroen Demeyer
On 2015-02-05 17:11, Vincent Delecroix wrote: #include "pari/anal.h" That file has to be copied manually, see build/pkgs/pari/spkg-install -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emai

[sage-devel] Re: Is it possible to support drawing ROI on image with interact widget

2015-02-05 Thread kcrisman
> Hi everyone, > Sage notebook is cool, and I am creating some web app with sage cell > server. The problem is, I would like to let my user draw a Region Of > Interest (such as point, rectangle, oval etc.) on an image, but currently I > can't find such a widget allow me to do that. > > Any s

Re: [sage-devel] Re: Can a Parent have different Element classes?

2015-02-05 Thread Eric Gourgoulhon
Le jeudi 5 février 2015 17:01:20 UTC+1, Jeroen Demeyer a écrit : > > On 2015-02-05 16:13, Eric Gourgoulhon wrote: > > What about isomorphisms ? Shall one use a cached is_isomorphism and > > implement an __invert__() method for all elements, raising an error if > > is_isomorphism is False ? >

Re: [sage-devel] sage -t src/sage/repl/notebook_ipython.py # 9 doctests failed

2015-02-05 Thread kcrisman
> > > > sage -t src/sage/repl/notebook_ipython.py # 9 doctests failed > And what exactly are the failed tests...? > See also http://ask.sagemath.org/question/25741/openssl-installed/ though it doesn't say there either. -- You received this message because you are subscribed to the Google G

Re: [sage-devel] Sagemath : wild experiments

2015-02-05 Thread Julien Puydt
Hi, Le 05/02/2015 17:11, Vincent Delecroix a écrit : Hello, After all packages installed the compilation of the sage library failed. There is a problem with pari headers. I do have the pari headers in /usr/include/x86_64-linux-gnu/pari/ but there is no pari/anal.h there! I don't have that fil

[sage-devel] coercion issue

2015-02-05 Thread Vincent Delecroix
sage: cm = sage.structure.element.get_coercion_model() sage: cm.explain(GF(5)['x'], ZZ, operator.div) Coercion on right operand via Composite map: From: Integer Ring To: Univariate Polynomial Ring in x over Finite Field of size 5 Defn: Natural morphism: From:

[sage-devel] Re: coercion issue

2015-02-05 Thread Vincent Delecroix
Sorry, I press enter to fast. There is a coercion problem. The result of division of GF(5)['x'] by ZZ should live in GF(5)['x']. But right now the coercion model thinks that it should go to the fraction field... (see the example in my first mail). Is there a ticket related to that issue? Does anyb

Re: [sage-devel] coercion issue

2015-02-05 Thread John Cremona
If you ask for operator.mul instead of operator.div then you get the poly ring. Is that it, perhaps? John On 5 February 2015 at 18:48, Vincent Delecroix <20100.delecr...@gmail.com> wrote: > sage: cm = sage.structure.element.get_coercion_model() > sage: cm.explain(GF(5)['x'], ZZ, operator.div) >

[sage-devel] Re: flint-2.4.4 compile error for Sage-6.4 on MacOSX Mavericks

2015-02-05 Thread Bill Hart
I can't shed much light on this. We do indeed call mpn_com_n from those flint functions. In flint.h mpn_com_n is #defined to mpn_com for compatibility with various versions of MPIR. The latter becomes xxxmpn_com where xxx can be g, _g, __g or ___g depending on the global symbol prefix on your

[sage-devel] Re: flint-2.4.4 compile error for Sage-6.4 on MacOSX Mavericks

2015-02-05 Thread Bill Hart
Actually, we call mpn_com_n in flint. In flint.h this becomes mpn_com. In gmp.h in MPIR this becomes __MPN(com_n) which must be ___gmpn_com_n on your machine. If headers are included in the reverse order, mpn_com_n becomes directly ___gmpn_com_n in gmp.h. This is indeed the name of the symbol

Re: [sage-devel] coercion issue

2015-02-05 Thread Vincent Delecroix
2015-02-05 21:38 UTC+01:00, John Cremona : > If you ask for operator.mul instead of operator.div then you get the > poly ring. Is that it, perhaps? Nope. I want to get rid of many hacks in rings/polynomial. In order to do that I need the div operation to be correctly handled by the coercion (or p

Re: [sage-devel] Sagemath : wild experiments

2015-02-05 Thread Julien Puydt
Hi! Le 05/02/2015 18:56, Julien Puydt a écrit : Hi, Le 05/02/2015 17:11, Vincent Delecroix a écrit : Hello, After all packages installed the compilation of the sage library failed. There is a problem with pari headers. I do have the pari headers in /usr/include/x86_64-linux-gnu/pari/ but ther

[sage-devel] Re: flint-2.4.4 compile error for Sage-6.4 on MacOSX Mavericks

2015-02-05 Thread Bill Hart
Can you post sage/local/include/gmp.h here. I can't see how it is getting the wrong symbol name, under any circumstances. On Thursday, 5 February 2015 22:04:55 UTC+1, Bill Hart wrote: > > Actually, we call mpn_com_n in flint. In flint.h this becomes mpn_com. > > In gmp.h in MPIR this becomes __MP

Re: [sage-devel] coercion issue

2015-02-05 Thread Jonas Jermann
Hi Set x=GF(5)['x'].gen() I dunno if this helps but here is an explanation why one gets a different behavior for x/7 than cm.bin_op(x,7,operator.div): If you do "x/7" then I think it calls __div__ from polynomial_element (Polynomial class): try: if not isinstance(right, Element) or right.pa

Re: [sage-devel] Is CMake OK for a standard spkg?

2015-02-05 Thread William
On Monday, March 1, 2010 at 4:39:59 AM UTC-8, William wrote: > > On Sun, Feb 28, 2010 at 11:40 PM, Peter Jeremy > wrote: > > >>For what is worth, we use cmake in FEMhub (femhub.org) as a standard > >>package and we never had any problems with that. > > > > If CMake was widely used (and hence ca

[sage-devel] Re: flint-2.4.4 compile error for Sage-6.4 on MacOSX Mavericks

2015-02-05 Thread Xander Faber
attached! On Thursday, February 5, 2015 at 4:17:26 PM UTC-5, Bill Hart wrote: > > Can you post sage/local/include/gmp.h here. I can't see how it is getting > the wrong symbol name, under any circumstances. > > On Thursday, 5 February 2015 22:04:55 UTC+1, Bill Hart wrote: >> >> Actually, we call m

Re: [sage-devel] Is CMake OK for a standard spkg?

2015-02-05 Thread Jeroen Demeyer
On 2015-02-05 23:06, William wrote: I wonder what is the latest on Sage and cmake? Ondrej Certik was just telling me about csympy, which uses cmake, and wondered whether that would be a deal break for inclusion of csympy as standard in Sage. Definitely 4 years ago it would have been. I

Re: [sage-devel] Is CMake OK for a standard spkg?

2015-02-05 Thread Francois Bissey
Cmake is a reverse approach compared to autotools. You need cmake installed to configure the software. The system to build (make or something else) is somewhat OS dependent. autotool generate a script and you don’t need auto tool installed on the target system. The main issue that you need to bo