#5131: regression in free modules -- who broke my __mul__
----------------------------+-----------------------------------------------
Reporter: was | Owner: was
Type: defect | Status: new
Priority: major | Milestone: sage-3.3
Component: linear algebra | Keywords:
----------------------------+-----------------------------------------------
If A is a free module and r a ring element then r*A and A*r used to work
fine. But somebody broke them.
In the good ol days:
{{{
wst...@sage:/disk/scratch/mabshoff-sage-releases/sage-0.10.0$ ./sage
[...]
sage: A = ZZ^3
sage: A
_5 = Ambient free module of rank 3 over the principal ideal domain
Integer Ring
sage: 2*A
_6 =
Free module of degree 3 and rank 3 over Integer Ring
Echelon basis matrix:
[2 0 0]
[0 2 0]
[0 0 2]
}}}
Now:
{{{
sage: A = ZZ^3
sage: 2*A
Traceback (most recent call last):
...
TypeError: unsupported operand parent(s) for '*': 'Integer Ring' and
'<class 'sage.modules.free_module.FreeModule_ambient_pid'>'
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5131>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---