#15327: More minor tableau and skew_tableau optimizations, and moving out
attacking_pairs
-------------------------------------------------+-------------------------
Reporter: darij | Owner:
Type: enhancement | Status:
Priority: major | needs_review
Component: combinatorics | Milestone: sage-5.13
Keywords: sage-combinat, tableau, | Resolution:
partition, skew tableau | Merged in:
Authors: Darij Grinberg | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: #15269 | Stopgaps:
-------------------------------------------------+-------------------------
Comment (by tscrim):
Hey Darij,
Here's a review patch which does:
- some docstring tweaks,
- adds a method `restriction_shape()` to `skew_tableau.py` (which how it's
done is [much] faster than the direct implementation I tried),
- and does some minor speedup to the creation of `SkewPartition`.
Before:
{{{
sage: %timeit skp = SkewPartition([[3,2,1],[2,1]])
10000 loops, best of 3: 184 us per loop
sage: %timeit skp = SkewPartition([[3,2,1],[2,1]])
1000 loops, best of 3: 178 us per loop
}}}
With patch:
{{{
sage: %timeit skp = SkewPartition([[3,2,1],[2,1]])
10000 loops, best of 3: 115 us per loop
sage: %timeit skp = SkewPartition([[3,2,1],[2,1]])
1000 loops, best of 3: 112 us per loop
}}}
If you're happy with my changes, then you can go ahead and set this to
positive review.
Best,[[BR]]
Travis
--
Ticket URL: <http://trac.sagemath.org/ticket/15327#comment:5>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.