Re: [sage-devel] Re: What are we unable to do right now ?

2014-12-13 Thread Nathann Cohen
> Another weakness of the Sage reference manual is that the doctest examples > only show text output -- the Ma's examples often show graphical output, > which can be a great help. This is being solved ! https://groups.google.com/d/topic/sage-devel/JnuAAd7iH2g/discussion Nathann -- You received

[sage-devel] Plotsssss' in the Docsssss'

2014-12-13 Thread Nathann Cohen
Hellooo everybody ! On the "What can't we do ?" thread it was raised that our html documentation did not contain many pictures. It is true. With the new ticket #17498, however, it becomes possible. The following code displays a drawing of Petersen's graph .. plot:: from sage.graphs.gra

[sage-devel] "Navigating Trac and Sage"

2014-12-13 Thread Karl-Dieter Crisman
Hi all, William suggested forwarding this correspondence about Trac. Feel free to add to it with your suggestions! -- Forwarded message -- Subject: Re: Some questions > Greetings, >I am having a bit of difficulty navigating the sage developer tracs > site. I thought maybe y

[sage-devel] Re: Wrapping up a C++ library

2014-12-13 Thread Nathann Cohen
By the way Volker: what is the correct way to add flags to Cython in the header of a file ? You use "#clang c++" on this ticket's example. Would "#cflags -mpopcount" work too ? Or "#cdivision=False" work ? Most of the time you have no idea, when you load a Cython file, whether the comment is i

[sage-devel] Re: Slow coercion from Sparse Polynomial Ring over ZZ to Dense Polynomial Ring using FLINT

2014-12-13 Thread Bill Hart
The flint implementation should not be quadratic time, as it doubles the allocated array every time it runs out of space. So the only way I can see to make it quadratic time is to create a new flint polynomial every time a coefficient is copied across. Of course for best performance, set the si

[sage-devel] Re: Slow coercion from Sparse Polynomial Ring over ZZ to Dense Polynomial Ring using FLINT

2014-12-13 Thread Bruno Grenet
Re, I've noticed that the slowness is actually also function of the number of terms, in a surprising way: sage: R. = PolynomialRing(ZZ,sparse=True) sage: S. = PolynomialRing(ZZ,implementation="FLINT") sage: f = x^10 sage: %time _ = S(f) CPU times: user 8.71 s, sys: 2.84 ms, total: 8.72 s Wa

[sage-devel] Re: Wrapping up a C++ library

2014-12-13 Thread Volker Braun
PS: Really sage.misc.cython.cython() should be rewritten to be python using subprocess.check_call / check_output and not shellscript snippets run via os.system. I'll leave that as an exercise ;-) On Saturday, December 13, 2014 7:31:07 PM UTC+1, Volker Braun wrote: > > This is http://trac.sagem

[sage-devel] Re: Wrapping up a C++ library

2014-12-13 Thread Volker Braun
This is http://trac.sagemath.org/ticket/15217 On Saturday, December 13, 2014 6:20:22 PM UTC+1, Jernej Azarija wrote: > > Hello! > > I am trying to wrap up a C++ library using Cython and I am having a > problem running the *.pyx file. Specifically I have the following Cython > program: > > =

[sage-devel] Wrapping up a C++ library

2014-12-13 Thread Jernej Azarija
Hello! I am trying to wrap up a C++ library using Cython and I am having a problem running the *.pyx file. Specifically I have the following Cython program: = # distutils: language = c++ # clang C++ cdef extern from "graph.hh": cdef cppclass Graph: Graph(int) def foo():

Re: [sage-devel] Optimizing posets and lattices

2014-12-13 Thread Nathann Cohen
Yoo ! > Möbius function matrix depends on other parts. We can do a boolean matrix > --- take GF(2) as base ring --- but is it stored as bits packed to bytes > really? HMmm... Actually it seems that we already have something like that: sage.matrix.matrix_mod2_dense.pyx But so

[sage-devel] Re: git server

2014-12-13 Thread Volker Braun
There is no system load to note. It looks more like a network connectivity issue to me. On a related note, there are lots of messages in /var/log/kern.log of the form: Dec 7 08:24:43 trac kernel: [13457427.826409] non-accessible hardlink creation was attempted by: git (fsuid 33) This is from

[sage-devel] Slow coercion from Sparse Polynomial Ring over ZZ to Dense Polynomial Ring using FLINT

2014-12-13 Thread Bruno Grenet
Working on ticket #15790 ,¹ I've noticed that coercion from Sparse Polynomial Ring over ZZ to Dense Polynomial over ZZ with FLINT implementation is unexpectedly slow. It is not the case with the NTL implementation, and it is actually not the case either i

Re: [sage-devel] Re: Sage Crash Report

2014-12-13 Thread Bruno Grenet
Le 13/12/2014 00:29, Volker Braun a écrit : Run "make", if that fails "make distclean && make" Thanks, there was a problem in the branch, and once resolved it worked. Bruno On Friday, December 12, 2014 9:16:53 PM UTC, Bruno Grenet wrote: Dear all, Wanting to work again on ticket #

Re: [sage-devel] Re: Should we strip leading whitespace in notebook?

2014-12-13 Thread Jeroen Demeyer
On 2014-12-12 22:56, William Stein wrote: I also agree with you and Karl's suggestion to pass off the string as is to IPython, which would maintain consistency... Just to be clear: the Sage notebook doesn't use IPython (although it probably should, but let's leave that for a different discussion

Re: [sage-devel] Should we strip leading whitespace in notebook?

2014-12-13 Thread Jeroen Demeyer
On 2014-12-12 22:38, William Stein wrote: In [1]: a=5 # there is a space at the beginning of this line. Here is an easy-to-implement comprise: for the Sage notebook, strip leading spaces *only* for 1-line cells, never for multi-line cells. That wouldn't break anything. -- You received th

[sage-devel] git server

2014-12-13 Thread Samuel Lelièvre
Hello, just wondering if the git server is having problems or undergoing a strong load? It took me three attempts to fetch from it. It worked at the third attempt. (See below). Vincent Delecroix had the same problem just before that. Samuel $ git fetch trac u/vdelecroix/flat_surfaces-6.5.beta2 ss