Re: [sage-combinat-devel] Rank and unrank for large FiniteEnumeratedSets

2012-12-13 Thread Nicolas M. Thiery
Hi Andrew! On Wed, Dec 12, 2012 at 05:37:19PM -0800, Andrew Mathas wrote: I have being trying to find the right idiom for look-up and reverse look ups in large enumerated sets. Prior to sage, I simply would have made a large list of the elements in the enumerated set and then

Re: [sage-combinat-devel] Rank and unrank for large FiniteEnumeratedSets

2012-12-13 Thread Vincent Delecroix
2012/12/13, Nicolas M. Thiery nicolas.thi...@u-psud.fr: Hi Andrew! On Wed, Dec 12, 2012 at 05:37:19PM -0800, Andrew Mathas wrote: I have being trying to find the right idiom for look-up and reverse look ups in large enumerated sets. Prior to sage, I simply would have made a

Re: [sage-combinat-devel] Rank and unrank for large FiniteEnumeratedSets

2012-12-13 Thread Nicolas M. Thiery
On Thu, Dec 13, 2012 at 10:06:41AM +0100, Vincent Delecroix wrote: I actually did it in #8920 and removed as it appears that it slows down everything as to test my_object in my_dictionnary the object my_object needs to be hashable and you have to catch the error. Perhaps I did it the wrong

[sage-combinat-devel] Re: problems with documentation build

2012-12-13 Thread Dima Pasechnik
[Followup-To: header set to gmane.comp.mathematics.sage.devel.] On 2012-12-12, Anne Schilling a...@math.ucdavis.edu wrote: Hi! Both Travis and I are having trouble viewing the documentation after sage -docbuild reference html It yields a lot of [MathError] when viewing the html sources.

Re: [sage-combinat-devel] Re: problems with documentation build

2012-12-13 Thread Anne Schilling
On 12/13/12 8:17 AM, Dima Pasechnik wrote: Hi Anne, On 14 December 2012 00:01, Anne Schilling a...@math.ucdavis.edu wrote: On 12/13/12 2:37 AM, Dima Pasechnik wrote: [Followup-To: header set to gmane.comp.mathematics.sage.devel.] On 2012-12-12, Anne Schilling a...@math.ucdavis.edu wrote:

Re: [sage-combinat-devel] Re: problems with documentation build

2012-12-13 Thread Dima Pasechnik
On 14 December 2012 00:33, Anne Schilling a...@math.ucdavis.edu wrote: On 12/13/12 8:17 AM, Dima Pasechnik wrote: Hi Anne, On 14 December 2012 00:01, Anne Schilling a...@math.ucdavis.edu wrote: On 12/13/12 2:37 AM, Dima Pasechnik wrote: [Followup-To: header set to

Re: [sage-combinat-devel] Re: combinat out again?

2012-12-13 Thread William Stein
On Wed, Dec 12, 2012 at 11:30 PM, William Stein wst...@gmail.com wrote: On Wed, Dec 12, 2012 at 7:00 PM, Anne Schilling a...@math.ucdavis.edu wrote: Hi William, Is combinat.math.washington.edu out once again? The machine does not seem to respond. It's not crashed due to a memory error,

Re: [sage-combinat-devel] Re: problems with documentation build

2012-12-13 Thread John H Palmieri
On Thursday, December 13, 2012 9:03:51 AM UTC-8, Volker Braun wrote: Works for me on Firefox 17.0.1 on Linux x86_64. Can somebody try and see if its fixed in more recent recent release? In more detail: go to http://www.mathjax.org/download/ and follow the link for Current Version:

Re: [sage-combinat-devel] Re: problems with documentation build

2012-12-13 Thread John H Palmieri
On Thursday, December 13, 2012 9:09:15 AM UTC-8, John H Palmieri wrote: On Thursday, December 13, 2012 9:03:51 AM UTC-8, Volker Braun wrote: Works for me on Firefox 17.0.1 on Linux x86_64. Can somebody try and see if its fixed in more recent recent release? In more detail: go to

Re: [sage-combinat-devel] Re: problems with documentation build

2012-12-13 Thread Volker Braun
On Thursday, December 13, 2012 5:13:38 PM UTC, John H Palmieri wrote: Or perhaps Volker meant a more recent release of Firefox. What is the most recent release available for OS X 10.6.8? Thats what I meant - most recent version is 17.0.1 on all platforms. -- You received this message

Re: [sage-combinat-devel] Re: problems with documentation build

2012-12-13 Thread Dima Pasechnik
I should mention that this kind of error was reported on http://trac.sagemath.org/sage_trac/ticket/13143 but nobody was able to say exactly where the problem lies. Now we know, it's Firefox-specific. I can also add that on OSX 10.5 with Firefox version 3.6.28 the situation is the same. Anyhow,

Re: [sage-combinat-devel] Re: problems with documentation build

2012-12-13 Thread John H Palmieri
On Thursday, December 13, 2012 9:17:24 AM UTC-8, Volker Braun wrote: On Thursday, December 13, 2012 5:13:38 PM UTC, John H Palmieri wrote: Or perhaps Volker meant a more recent release of Firefox. What is the most recent release available for OS X 10.6.8? Thats what I meant - most

Re: [sage-combinat-devel] Re: problems with documentation build

2012-12-13 Thread Anne Schilling
On 12/13/12 9:17 AM, Volker Braun wrote: On Thursday, December 13, 2012 5:13:38 PM UTC, John H Palmieri wrote: Or perhaps Volker meant a more recent release of Firefox. What is the most recent release available for OS X 10.6.8? Thats what I meant - most recent version is 17.0.1 on

Re: [sage-combinat-devel] Re: problems with documentation build

2012-12-13 Thread Anne Schilling
On 12/13/12 9:09 AM, John H Palmieri wrote: On Thursday, December 13, 2012 9:03:51 AM UTC-8, Volker Braun wrote: Works for me on Firefox 17.0.1 on Linux x86_64. Can somebody try and see if its fixed in more recent recent release? In more detail: go to

Re: [sage-combinat-devel] Re: problems with documentation build

2012-12-13 Thread Travis Scrimshaw
On Thursday, December 13, 2012 9:32:49 AM UTC-8, Dima Pasechnik wrote: I should mention that this kind of error was reported on http://trac.sagemath.org/sage_trac/ticket/13143 but nobody was able to say exactly where the problem lies. Now we know, it's Firefox-specific. I can also add

[sage-combinat-devel] Re: combinat out again?

2012-12-13 Thread Dima Pasechnik
On 2012-12-13, William Stein wst...@gmail.com wrote: On Wed, Dec 12, 2012 at 11:30 PM, William Stein wst...@gmail.com wrote: On Wed, Dec 12, 2012 at 7:00 PM, Anne Schilling a...@math.ucdavis.edu wrote: Hi William, Is combinat.math.washington.edu out once again? The machine does not seem to

Re: [sage-combinat-devel] Re: problems with documentation build

2012-12-13 Thread Andrew Mathas
I am using macosx 10.7.5 and firefox 17.0.1 and the page displays properly for me. So the problem is also operating system dependent. Andrew -- You received this message because you are subscribed to the Google Groups sage-combinat-devel group. To view this discussion on the web visit

[sage-combinat-devel] Re: combinat out again?

2012-12-13 Thread Volker Braun
On Thursday, December 13, 2012 10:06:47 PM UTC, Dima Pasechnik wrote: it might be GAP to blame, in part, as GAP reserves an amount of swap sort of proportional to available RAM. Right now it basically eats all available swap, this is going to be fixed in #13211 Now imagine you run 50

Re: [sage-combinat-devel] Re: combinat out again?

2012-12-13 Thread William Stein
On Thu, Dec 13, 2012 at 11:55 AM, William Stein wst...@gmail.com wrote: On Wed, Dec 12, 2012 at 11:30 PM, William Stein wst...@gmail.com wrote: On Wed, Dec 12, 2012 at 7:00 PM, Anne Schilling a...@math.ucdavis.edu wrote: Hi William, Is combinat.math.washington.edu out once again? The

Re: [sage-combinat-devel] partitions

2012-12-13 Thread Anne Schilling
Hi Alex, How about def add_rho(mu,k): mu = (mu+[0]*k)[:k] return [mu[i]+k-i for i in range(k)] def partitions_with_distinct_parts(N,k): M = Integer(N-(k+1)*k/2) P = Partitions(M,max_length=k) return [add_rho(p,k) for p in P] sage: partitions_with_distinct_parts(10,3) [[7,