#15884: Fix in Stanley symmetric functions
-------------------------+-------------------------------------------------
Reporter: | Owner:
aschilling | Status: new
Type: defect | Milestone: sage-6.2
Priority: major | Keywords: stanley symmetric functions,
Component: | unit, one
combinatorics | Authors: Anne Schilling
Merged in: | Report Upstream: N/A
Reviewers: | Branch:
Work issues: | Dependencies:
Commit: |
Stopgaps: |
-------------------------+-------------------------------------------------
Currently, Stanley symmetric functions use unit instead of one which makes
the following fail:
{{{
sage: A = AffinePermutationGroup(['A',4,1])
sage: a = A([-2,0,1,4,12])
sage: a.stanley_symmetric_function()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call
last)
<ipython-input-3-21372b62dff6> in <module>()
----> 1 a.stanley_symmetric_function()
/Applications/sage/local/lib/python2.7/site-
packages/sage/categories/weyl_groups.pyc in
stanley_symmetric_function(self)
355 import sage.combinat.sf
356 m =
sage.combinat.sf.sf.SymmetricFunctions(QQ).monomial()
--> 357 return
m.from_polynomial_exp(self.stanley_symmetric_function_as_polynomial())
358
359 @cached_in_parent_method
/Applications/sage/local/lib/python2.7/site-
packages/sage/misc/cachefunc.so in
sage.misc.cachefunc.CachedMethodCaller.__call__
(sage/misc/cachefunc.c:8248)()
/Applications/sage/local/lib/python2.7/site-
packages/sage/misc/cachefunc.so in
sage.misc.cachefunc.CachedMethod._instance_call
(sage/misc/cachefunc.c:10738)()
/Applications/sage/local/lib/python2.7/site-
packages/sage/categories/weyl_groups.pyc in
stanley_symmetric_function_as_polynomial(self, max_length)
308
309 return
R(sum(2**(pieri_factors.stanley_symm_poly_weight(u))*x[u.length()-1] *
v.stanley_symmetric_function_as_polynomial(max_length = u.length())
--> 310 for (u,v) in
self.left_pieri_factorizations(max_length)
311 if u != W.unit()))
312
/Applications/sage/local/lib/python2.7/site-
packages/sage/categories/weyl_groups.pyc in <genexpr>((u, v))
309 return
R(sum(2**(pieri_factors.stanley_symm_poly_weight(u))*x[u.length()-1] *
v.stanley_symmetric_function_as_polynomial(max_length = u.length())
310 for (u,v) in
self.left_pieri_factorizations(max_length)
--> 311 if u != W.unit()))
312
313
/Applications/sage/local/lib/python2.7/site-
packages/sage/structure/parent.so in
sage.structure.parent.Parent.__getattr__ (sage/structure/parent.c:6997)()
/Applications/sage/local/lib/python2.7/site-
packages/sage/structure/misc.so in
sage.structure.misc.getattr_from_other_class
(sage/structure/misc.c:1606)()
AttributeError: 'AffinePermutationGroupTypeA_with_category' object has no
attribute 'unit'
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/15884>
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.