#16261: Default behaviour of AdditiveAbelianGroup(a_tuple)
-------------------------------------------------+-------------------------
Reporter: ncohen | Owner:
Type: enhancement | Status: closed
Priority: major | Milestone: sage-6.4
Component: group theory | Resolution: fixed
Keywords: | Merged in:
Authors: Nathann Cohen | Reviewers: Travis
Report Upstream: N/A | Scrimshaw
Branch: | Work issues:
36cf5008dd7712178b5b96ef38b9eb8518c7ddfb | Commit:
Dependencies: | Stopgaps:
-------------------------------------------------+-------------------------
Changes (by jhpalmieri):
* commit: 36cf5008dd7712178b5b96ef38b9eb8518c7ddfb =>
Comment:
A question: with the old behavior, I could do
{{{
G = AdditiveAbelianGroup([0,0])
G(a)
}}}
and have it return something sensible (and the ''same'' thing) whether `a`
was a vector, a list, a tuple, or an element of `G`. This now gives a
deprecation warning if `a` is a list or tuple. On the other hand
{{{
G.linear_combination_of_smith_form_gens(a)
}}}
gives an outright error if `a` is an element of `G`. Should I do
{{{
G(vector(a))
}}}
to recover this behavior?
--
Ticket URL: <http://trac.sagemath.org/ticket/16261#comment:32>
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.