Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Partition options and cleanup patch
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 26 - 43 of 43 - Collapse all  -  Translate all to Translated (View all originals) < Older 
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nicolas M. Thiery  
View profile  
 More options Nov 11 2012, 5:04 am
From: "Nicolas M. Thiery" <Nicolas.Thi...@u-psud.fr>
Date: Sun, 11 Nov 2012 10:04:14 +0000
Local: Sun, Nov 11 2012 5:04 am
Subject: Re: [sage-combinat-devel] Partition options and cleanup patch

On Fri, Nov 09, 2012 at 05:49:47PM -0800, Travis Scrimshaw wrote:
>       In all honesty, I almost feel like any comparison should do a coercion
>    into a common parent and check there, and if not possible, then raise an
>    exception. However this is likely to be a major overhaul and break a few
>    (a lot) of things...

Agreed ...
                                Nicolas
--
Nicolas M. Thi ry "Isil" <nthi...@users.sf.net>
http://Nicolas.Thiery.name/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nicolas M. Thiery  
View profile  
 More options Nov 11 2012, 5:08 am
From: "Nicolas M. Thiery" <Nicolas.Thi...@u-psud.fr>
Date: Sun, 11 Nov 2012 09:58:14 +0000
Local: Sun, Nov 11 2012 4:58 am
Subject: Re: [sage-combinat-devel] Partition options and cleanup patch

On Fri, Nov 09, 2012 at 10:35:34AM -0800, Travis Scrimshaw wrote:
>       In cleaning up the import statements (in my definition of cleanup, and
>    if I shouldn't touch import statements, please let me know), I noticed an
>    interesting quirk, partition.py needs to import skew_partition.py,
>    otherwise there's an import error on startup...

This could be a good candidate for a lazy_import.

Cheers,
                                Nicolas
--
Nicolas M. Thi ry "Isil" <nthi...@users.sf.net>
http://Nicolas.Thiery.name/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Travis Scrimshaw  
View profile  
 More options Nov 11 2012, 1:34 pm
From: Travis Scrimshaw <tsc...@ucdavis.edu>
Date: Sun, 11 Nov 2012 10:34:53 -0800 (PST)
Local: Sun, Nov 11 2012 1:34 pm
Subject: Re: [sage-combinat-devel] Partition options and cleanup patch

Hey Nicolas,

This could be a good candidate for a lazy_import.


I'll give it a try.

Hey Hugh,
   What Andrew said was correct, it's because we are removing
Partition_class. I will setup an alias with a deprecation warning.

Best,
Travis


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hugh Thomas  
View profile  
 More options Nov 12 2012, 2:54 am
From: Hugh Thomas <hugh.ross.tho...@gmail.com>
Date: Sun, 11 Nov 2012 23:54:20 -0800 (PST)
Local: Mon, Nov 12 2012 2:54 am
Subject: Re: [sage-combinat-devel] Partition options and cleanup patch

Thanks, Travis and Andrew, for the rebasing and the explanations.  

cheers,

Hugh


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Travis Scrimshaw  
View profile  
 More options Nov 12 2012, 10:45 am
From: Travis Scrimshaw <tsc...@ucdavis.edu>
Date: Mon, 12 Nov 2012 07:45:23 -0800 (PST)
Local: Mon, Nov 12 2012 10:45 am
Subject: Re: [sage-combinat-devel] Partition options and cleanup patch

Hey Hugh,
   No problem. Sorry this has been such a hassle.

Also, I've rebased concrete_combinatorial_statistics_and_maps-cs.patch
(with Christian's approval), so the whole queue should (at present) apply
cleanly.

Best,
Travis


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Mathas  
View profile  
 More options Nov 12 2012, 7:56 pm
From: Andrew Mathas <andrew.mat...@sydney.edu.au>
Date: Mon, 12 Nov 2012 16:56:13 -0800 (PST)
Local: Mon, Nov 12 2012 7:56 pm
Subject: Re: [sage-combinat-devel] Partition options and cleanup patch

Hi Travis,

You should probably also deprecate
sage.combinat.partition.Partitions_all_cache. Currently, this causing
issues for skew_partition.py which calls this once.

Andrew


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hugh Thomas  
View profile  
 More options Nov 13 2012, 2:41 pm
From: Hugh Thomas <hugh.ross.tho...@gmail.com>
Date: Tue, 13 Nov 2012 11:41:45 -0800 (PST)
Local: Tues, Nov 13 2012 2:41 pm
Subject: Re: [sage-combinat-devel] Partition options and cleanup patch

Hi!

FYI, further rebasing of tableaux-combinatorics-am.patch seems to be
needed.  I'm going to disable it temporarily so the queue applies.  

cheers,

Hugh


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Mathas  
View profile  
 More options Nov 13 2012, 7:29 pm
From: Andrew Mathas <andrew.mat...@sydney.edu.au>
Date: Tue, 13 Nov 2012 16:29:37 -0800 (PST)
Local: Tues, Nov 13 2012 7:29 pm
Subject: Re: [sage-combinat-devel] Partition options and cleanup patch

On 14/11/12 6:24 AM, Travis Scrimshaw wrote:

Also in regard to the partition options patch, I can't seem to find the
Partitions_all_cache when the queue is applied up to there (I'm running
5.4.beta1).

Hi Travis,

I had a look at the patch queue and Partitions_all_cache was added by
partition_constructor_speedup-fh.patch which was recently disabled.
Partitions_all_cache is needed, however, by the
skew_partitions_init_speedup-fh.patch. So I have disabled the skew
partitions speed-up patch as well. Sage now builds when all of the queue is
applied.

Andrew


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Travis Scrimshaw  
View profile  
 More options Nov 13 2012, 7:57 pm
From: Travis Scrimshaw <tsc...@ucdavis.edu>
Date: Tue, 13 Nov 2012 16:57:18 -0800 (PST)
Local: Tues, Nov 13 2012 7:57 pm
Subject: Re: [sage-combinat-devel] Partition options and cleanup patch

Thanks Andrew!

Travis


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Travis Scrimshaw  
View profile  
 More options Nov 27 2012, 8:29 pm
From: Travis Scrimshaw <tsc...@ucdavis.edu>
Date: Tue, 27 Nov 2012 17:29:43 -0800 (PST)
Local: Tues, Nov 27 2012 8:29 pm
Subject: Re: [sage-combinat-devel] Partition options and cleanup patch

Hey everyone,
   Here's the current update of the options patch #13605:

- I've added "containment" as an additional order option which are set in
the parent objects

- I've had to leave `Partitions_all` alone for the most part, deprecating
it caused pickling/TestSuite errors I couldn't figure out how to fix

- Undeprecated the `*lengths()` and removed the `*length_tableau()`
functions

- Undeprecated `evaluation()` and elaborated its docstrings

- Added tableau options and integrated with `TableauTuple`

- Added a method (I believe I called it `larger_lex()` which compares lex)

- More doc tweaks

- Deprecated the `from_*` from the module level and are now directly
callable as `Partitions().from_*`.

Right now there's still about a million doctests to fix (primarily in
symmetric functions because by implementing the comparison operators for
partitions, it has changed the ordering of the terms), but I wanted to make
sure everyone is okay with the current functionality of the patch before I
start making all doctests pass.

However there is one other thing I wanted to ask, and that is instead of
passing in a string for a particular ordering, pass in a function which
compares greater than and base all other comparisons off that? Something
like this for example:
{{{
class Foo:
    def __init__(self, order=None):
        if order is not None:
           self.__gt__ = order

    def __ge__(self, other):
        if self == other or self > other:
            return True
        return False

    def __lt__(self, other):
        return other > self

}}}

Thoughts?

Thanks,
Travis


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Mathas  
View profile  
 More options Dec 10 2012, 11:59 pm
From: Andrew Mathas <andrew.mat...@sydney.edu.au>
Date: Mon, 10 Dec 2012 20:59:02 -0800 (PST)
Local: Mon, Dec 10 2012 11:59 pm
Subject: Re: [sage-combinat-devel] Partition options and cleanup patch

Hi Travis,

I have twos questions about the order options that have appeared in your
partition clean-ups.

The easy one first: should the reverse ordering also exist? That is,
"reverse lex", "reverse dominance", "reverse containment"? If people agree
that it is worth including these explicitly it would be good if there was a
systematic way to organise all of the orderings...will let you know if I
come up with something.

The second question is harder: is it intended that, ultimately, the order
in which the partitions are generated by the iterator will be compatible
with the order on the parent? If the ordering is part of the parent then I
think that this is a reasonable expectation but, of course, it would be
painful implement.

What do people think is the "ideal" way this should work for any parent
that comes equipped with an (optionable) ordering?

Cheers,
Andrew


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anne Schilling  
View profile  
 More options Dec 11 2012, 12:35 am
From: Anne Schilling <a...@math.ucdavis.edu>
Date: Mon, 10 Dec 2012 21:35:16 -0800
Local: Tues, Dec 11 2012 12:35 am
Subject: Re: [sage-combinat-devel] Partition options and cleanup patch
Hi Andrew and Travis,

> The easy one first: should the reverse ordering also exist? That is, "reverse lex", "reverse dominance", "reverse containment"? If people agree that it is worth including these explicitly it would be
> good if there was a systematic way to organise all of the orderings...will let you know if I come up with something.

Yes, I think this is reasonable!

> The second question is harder: is it intended that, ultimately, the order in which the partitions are generated by the iterator will be compatible with the order on the parent? If the ordering is part
> of the parent then I think that this is a reasonable expectation but, of course, it would be painful implement.

> What do people think is the "ideal" way this should work for any parent that comes equipped with an (optionable) ordering?

Basically you would like the iterator to return a linear extension of the
ordering? That might be possible if by considering the poset given by
the partial order.

Best,

Anne


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Mathas  
View profile  
 More options Dec 11 2012, 12:57 am
From: Andrew Mathas <andrew.mat...@sydney.edu.au>
Date: Mon, 10 Dec 2012 21:57:43 -0800 (PST)
Local: Tues, Dec 11 2012 12:57 am
Subject: Re: [sage-combinat-devel] Partition options and cleanup patch

> Basically you would like the iterator to return a linear extension of the
> ordering? That might be possible if by considering the poset given by
> the partial order.

> Yes, that's right. This is most sensible for total orderings, but for

partial orders the iterator could return a non-canonical (and presumably
not completely guaranteed) linear extension.

I think that this would be a useful feature, unfortunately, to do it
efficiently would probably require separate iterators for each ordering.
Throwing efficiency to the wind, you could of course generate any
FiniteEnumerateSet component and then sort this using the already
implemented comparision methods.

Andrew


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Travis Scrimshaw  
View profile  
 More options Dec 11 2012, 3:29 am
From: Travis Scrimshaw <tsc...@ucdavis.edu>
Date: Tue, 11 Dec 2012 00:29:00 -0800 (PST)
Subject: Re: [sage-combinat-devel] Partition options and cleanup patch

Hey Andrew,

> The easy one first: should the reverse ordering also exist? That is,
> "reverse lex", "reverse dominance", "reverse containment"? If people agree
> that it is worth including these explicitly it would be good if there was a
> systematic way to organise all of the orderings...will let you know if I
> come up with something.

I will do "reverse lex" (lex order read from right to left) and "reverse
dominance" (which I presume is partial sums from right to left). However
what is reverse containment?

> The second question is harder: is it intended that, ultimately, the order
> in which the partitions are generated by the iterator will be compatible
> with the order on the parent? If the ordering is part of the parent then I
> think that this is a reasonable expectation but, of course, it would be
> painful implement.

For lex and dominance, I believe this shouldn't be a problem. Containment
is slightly tricky, but I doubt its too horrible. The true problems might
be with the reverse orderings, and that we might have to do something more
complex.

Best,
Travis


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Mathas  
View profile  
 More options Dec 11 2012, 4:31 am
From: Andrew Mathas <andrew.mat...@sydney.edu.au>
Date: Tue, 11 Dec 2012 01:31:28 -0800 (PST)
Local: Tues, Dec 11 2012 4:31 am
Subject: Re: [sage-combinat-devel] Partition options and cleanup patch

> I will do "reverse lex" (lex order read from right to left) and "reverse
> dominance" (which I presume is partial sums from right to left). However
> what is reverse containment?

AH, I guess that  "reverse lexicographic" is ambiguous as it could mean
either reading the words in the reverse order or simply reversing the
partial order.

For me, and what I meant with all of these orderings, is simply taking the
same order but in the reverse order:
x \le_{rev} y  <==> y \le x
Of course, this is a very trivial difference but it is still a significant
one in terms of the poset and the order in which the partitions are
generated. In my work, the "reverse" orderings in this sense play a very
important role: they reflect contragredient duality and also the duality
arising from tensoring with the sign representations.

I have never seen an application of the "right to left" lexicographic
ordering, although I have this vague feeling that it appears in Stanley's
book (but then, so do most things!:).  I don't remember ever seeing the
right to left dominance order...

Andrew


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Travis Scrimshaw  
View profile  
 More options Dec 11 2012, 10:45 am
From: Travis Scrimshaw <tsc...@ucdavis.edu>
Date: Tue, 11 Dec 2012 07:45:49 -0800 (PST)
Local: Tues, Dec 11 2012 10:45 am
Subject: Re: [sage-combinat-devel] Partition options and cleanup patch

Hey Andrew,

Ah I see. I will implement a (naive) __reversed__() method for the
partitions (see http://docs.python.org/2/library/functions.html#reversed)
since we've removed __len__() from the partition parents. That way you can
just call `reversed(Partitions(5))` to iterate through in reverse. Expect
it on the next #13605 push.

> I have never seen an application of the "right to left" lexicographic
> ordering, although I have this vague feeling that it appears in Stanley's
> book (but then, so do most things!:).

I've seen it, although it was in the context of simplicial complexes.

>   I don't remember ever seeing the right to left dominance order...

 I might have just made that up...

Best,
Travis


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Travis Scrimshaw  
View profile  
 More options Dec 11 2012, 1:36 pm
From: Travis Scrimshaw <tsc...@ucdavis.edu>
Date: Tue, 11 Dec 2012 10:36:19 -0800 (PST)
Local: Tues, Dec 11 2012 1:36 pm
Subject: Re: [sage-combinat-devel] Partition options and cleanup patch

> Ah I see. I will implement a (naive) __reversed__() method for the
> partitions (see http://docs.python.org/2/library/functions.html#reversed)
> since we've removed __len__() from the partition parents. That way you can
> just call `reversed(Partitions(5))` to iterate through in reverse. Expect
> it on the next #13605 push.

Done and pushed.

> I have never seen an application of the "right to left" lexicographic
>> ordering, although I have this vague feeling that it appears in Stanley's
>> book (but then, so do most things!:).

> I've seen it, although it was in the context of simplicial complexes.

I've added it in case someone has an application for it. I will add more
warnings about our convention between lex and rev lex orderings.

Best,
Travis


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nicolas M. Thiery  
View profile  
 More options Dec 14 2012, 4:54 pm
From: "Nicolas M. Thiery" <Nicolas.Thi...@u-psud.fr>
Date: Fri, 14 Dec 2012 22:54:10 +0100
Local: Fri, Dec 14 2012 4:54 pm
Subject: Re: [sage-combinat-devel] Partition options and cleanup patch
        Hi Andrew,

On Tue, Dec 11, 2012 at 01:31:28AM -0800, Andrew Mathas wrote:
>    AH, I guess that  "reverse lexicographic" is ambiguous as it could mean
>    either reading the words in the reverse order or simply reversing the
>    partial order.

FWIW, In commutative algebra, and about term orders, they often use:

        inverse lexicographic (read the word right to left)
        negative lexicographic (reversing the partial order)
        reverse lexicographic == negative inverse lexicographic

See e.g.:

        http://www.sagemath.org/doc/reference/sage/rings/polynomial/term_orde...

Cheers,
                                Nicolas
--
Nicolas M. Thi ry "Isil" <nthi...@users.sf.net>
http://Nicolas.Thiery.name/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages < Older 
« Back to Discussions « Newer topic     Older topic »