#4237: [with patch; half done] magma -- finite field matrix conversions
-------------------------+--------------------------------------------------
Reporter: was | Owner: was
Type: enhancement | Status: assigned
Priority: major | Milestone: sage-3.2.2
Component: interfaces | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by was):
> trac_4237_part1.patch assumes that we always store the entries as
positive integers.
> Is this a sensible assumption?
Yes. All entries are stored as numbers between 0 and p-1. See, e.g.,
code like this in the __init__ method:
{{{
if PY_TYPE_CHECK_EXACT(x, int):
tmp = (<long>x) % p
v[j] = tmp + (tmp<0)*p
}}}
William
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4237#comment:11>
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
-~----------~----~----~----~------~----~------~--~---