#17098: sum_of_terms on free modules leaves parent unchanged -- is this right?
-------------------------+-------------------------------------------------
Reporter: darij | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.4
Component: algebra | Keywords: free modules, sum of terms,
Merged in: | coercion,
Reviewers: | Authors:
Work issues: | Report Upstream: N/A
Commit: | Branch:
Stopgaps: | Dependencies:
-------------------------+-------------------------------------------------
On the one hand, yes, coercion is slow, so it is helpful to not use it by
default. On the other hand:
{{{
sage: Sym = SymmetricFunctions(Zmod(2)); Sym.inject_shorthands()
sage: m.sum_of_terms([(Partition([2]), 2)])
2*m[2]
sage: _ == 0
False
sage: e(__)
0
}}}
I don't know if this causes actual issues anywhere else in the code, but I
cannot rule it out...
--
Ticket URL: <http://trac.sagemath.org/ticket/17098>
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/d/optout.