#9940: Fix equality/inequality for AdditiveAbelianGroup
-----------------------------+----------------------------------------------
Reporter: mpatel | Owner: joyner
Type: defect | Status: needs_work
Priority: critical | Milestone: sage-4.6.1
Component: group theory | Keywords:
Author: John Palmieri | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
Comment(by jhpalmieri):
Oh, I see: `FGP_Module` is a '''function''' which returns identical
objects (via the `__init__` method of `FGP_Module_class`) if you pass it
the same input. If you do this:
{{{
sage: G=AdditiveAbelianGroup([0,0])
sage: from sage.modules.fg_pid.fgp_module import FGP_Module_class
sage: M1 = FGP_Module_class(G.V(), G.W())
sage: M2 = FGP_Module_class(G.V(), G.W())
sage: M1 == M2
True
sage: M1 != M2
True
sage: M1 < M2
True
sage: M1 > M2
False
}}}
So adding these comparisons to `FGP_Module_class` might be the right thing
to do, to deal with the case when people construct these modules without
using the helper function `FGP_Module`, using the class instead.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9940#comment:14>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.