#15150: Implement NCSym
------------------------------------+-----------------------------
Reporter: tscrim | Owner: sage-combinat
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.12
Component: combinatorics | Resolution:
Keywords: | Merged in:
Authors: Travis Scrimshaw | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: #15143 | Stopgaps:
------------------------------------+-----------------------------
Comment (by zabrocki):
Hi Travis,
So far I am focusing in on pieces of functionality. It doesn't quite seem
to work as I expect. The doc string `w.sum_of_partitions?` does not seem
to agree with what it does since it is actually a sum with coefficients.
I was trying to figure out how to coerce
{{{f=w[[1,2],[3]]+w[[1,3],[2]]+w[[2,3],[1]]}}} to the h-basis and I don't
see a doc-string and what I tried doesn't seem to work anyway.
`DNCSym.to_symmetric_function?` gives an error and when I try either
`h(f)` or `DNCSym.to_symmetric_function(f)`, both give the same error:
{{{
TypeError Traceback (most recent call
last)
<ipython-input-34-98785946d5a3> in <module>()
----> 1 DNCSym.to_symmetric_function(f)
/Applications/sage-5.12.beta5/local/lib/python2.7/site-
packages/sage/categories/map.so in sage.categories.map.Map.__call__
(sage/categories/map.c:4018)()
/Applications/sage-5.12.beta5/local/lib/python2.7/site-
packages/sage/categories/morphism.so in
sage.categories.morphism.SetMorphism._call_
(sage/categories/morphism.c:4837)()
/Applications/sage-5.12.beta5/local/lib/python2.7/site-
packages/sage/categories/modules_with_basis.pyc in preimage(self, f)
1711 j_preimage = j
1712 else:
-> 1713 j_preimage = self._inverse_on_support(j)
1714 if j_preimage is None:
1715 raise ValueError, "%s is not in the image of
%s"%(f, self)
/Applications/sage-5.12.beta5/local/lib/python2.7/site-
packages/sage/combinat/ncsym/dual.pyc in _par_to_set_par(self, la)
287 ret = []
288 for i in sorted(la):
--> 289 ret += [range(cur, cur+i)]
290 cur += i
291 return SetPartitions()(ret)
TypeError: unsupported operand type(s) for +: 'int' and
'Set_object_enumerated_with_category'
}}}
What should I do in order to send my element `f` into the symmetric
functions.
--
Ticket URL: <http://trac.sagemath.org/ticket/15150#comment:38>
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.