Re: [sage-devel] Counting integer compositions with restrictions

2019-02-19 Thread Vincent Delecroix
Le 19/02/2019 à 21:43, Jori Mäntysalo (TAU) a écrit : Is there a fast way to compute for example Compositions(15, min_length=10, max_length=10).cardinality() in some package already integrated to SageMath? For Partitions(...) that seems to be the case, but Compositions(...) uses just brute enum

Re: [sage-devel] Re: Counting integer compositions with restrictions

2019-02-19 Thread TB
There is the cardinality method of IntegerVectors. Note that the default for min_part is 0. It is implemented in src/sage/combinat/integer_vector.py without brute force enumeration under some constraints. Looking at it now, I think there is a bug at line 1331: It will never enter the if clause

[sage-devel] Re: Counting integer compositions with restrictions

2019-02-19 Thread 'Martin R' via sage-devel
I am guessing that it should be sufficiently fast to compute the cardinality using the generating series. That is, for compositions with parts in a set S this would be 1/(1-sum_{s in S} x^s) with special cases S = {a,...,b} and S = {a,...} Martin Am Dienstag, 19. Februar 2019 22:03:43 UTC+1

[sage-devel] Re: Counting integer compositions with restrictions

2019-02-19 Thread 'Martin R' via sage-devel
I do think that P = Partitions(15, min_length=10, max_length=10); P.cardinality() also uses brute force. (at least P.cardinality?? says so). Would be great, though! Martin Am Dienstag, 19. Februar 2019 21:43:36 UTC+1 schrieb Jori Mäntysalo (TAU): > > Is there a fast way to compute for example

[sage-devel] Counting integer compositions with restrictions

2019-02-19 Thread TAU
Is there a fast way to compute for example Compositions(15, min_length=10, max_length=10).cardinality() in some package already integrated to SageMath? For Partitions(...) that seems to be the case, but Compositions(...) uses just brute enumeration. -- Jori Mäntysalo Tampereen yliopisto - Ihm

Re: [sage-devel] Is there a way to force Sage to use system's openblas ?

2019-02-19 Thread Samuel Lelièvre
Tue 2019-02-19 18:13 UTC, Dima: > > Trac keyword spkg-configure gives a list of relevant tickets. Direct link: https://trac.sagemath.org/query?order=id&desc=1&keywords=~spkg-configure -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe

Re: [sage-devel] Is there a way to force Sage to use system's openblas ?

2019-02-19 Thread Dima Pasechnik
Trac keyword spkg-configure gives a list of relevant tickets. On Tue, 19 Feb 2019 18:41 Thierry Hi, > > On Mon, Feb 18, 2019 at 04:07:07PM +0100, E. Madison Bray wrote: > [...] > > Fixing that's something I've been working toward for practically as > > long as I've been working on the project, an

Re: [sage-devel] Is there a way to force Sage to use system's openblas ?

2019-02-19 Thread Thierry
Hi, On Mon, Feb 18, 2019 at 04:07:07PM +0100, E. Madison Bray wrote: [...] > Fixing that's something I've been working toward for practically as > long as I've been working on the project, and we've been making real > progress lately, which you are encouraged to join in and help with... Perhaps c

Re: [sage-devel] Re: Unable to compile sage 8.7.beta3 on mojave...

2019-02-19 Thread E. Madison Bray
On Tue, Feb 19, 2019 at 1:51 PM Andrew wrote: > > > >> Do you mean that after installing Mojave you never again managed >> to compile Sage? Do you still have a working version of Sage? >> Which version is that? > > > I no longer have a working version of sage. >> >> >> Have you tried installing t

Re: [sage-devel] Re: Unable to compile sage 8.7.beta3 on mojave...

2019-02-19 Thread E. Madison Bray
On Tue, Feb 19, 2019 at 9:18 AM Dima Pasechnik wrote: > > On Mon, Feb 18, 2019 at 11:37 PM John H Palmieri > wrote: > > > > On one of my machines running OS X Mojave, when I run 'make', the pip > > installation fails, saying > > > > ModuleNotFoundError: No module named 'zlib' > > > > That's whe

Re: [sage-devel] Re: review requested

2019-02-19 Thread E. Madison Bray
On Tue, Feb 19, 2019 at 11:21 AM Emmanuel Charpentier wrote: > > Dear Erik Madison, > > What setup would you like to test this patch ? My "everyday" machines do have > routinely matched gcc, g++,and gfortran packages : in such a setup, the test > would be useless, since gfortnat wouldn't be inst

[sage-devel] Re: Unable to compile sage 8.7.beta3 on mojave...

2019-02-19 Thread Andrew
Do you mean that after installing Mojave you never again managed > to compile Sage? Do you still have a working version of Sage? > Which version is that? > I no longer have a working version of sage. > > Have you tried installing the SageMath 8.6 binary for macOS from > > http://www.sagem

[sage-devel] Re: review requested

2019-02-19 Thread Emmanuel Charpentier
Dear Erik Madison, What setup would you like to test this patch ? My "everyday" machines do have routinely matched gcc, g++,and gfortran packages : in such a setup, the test would be useless, since gfortnat wouldn't be installed. Would a Debian virtual machine bearing the minimum dependencies d

Re: [sage-devel] Re: Unable to compile sage 8.7.beta3 on mojave...

2019-02-19 Thread Dima Pasechnik
On Mon, Feb 18, 2019 at 11:37 PM John H Palmieri wrote: > > On one of my machines running OS X Mojave, when I run 'make', the pip > installation fails, saying > > ModuleNotFoundError: No module named 'zlib' > > That's when the solution is > > ./sage -f zlib python2 python3 > make > so this points