You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seem to be serious design issues with the whole algebraic number theory setup in Sage which make it very frustrating to do any serious work on things like #1367.
…ional quaternion algebras
Added `QuaternionFractionalIdeal_rational.random_element()` to fix
random sampling in fractional ideals of quaternion algebras.
The method `.random_element()` of the ideal class refers to the ring
over which the ideal is defined, but for fractional ideals Sage often
(incorrectly) gives the base field of the algebra as a base ring. To
work around this, we implement a new function
`QuaternionFractionalIdeal_rational.random_element()` that hardcodes
$\mathbb{Z}$ to return a random $\mathbb{Z}$-linear combination of the
(lattice) generators of the fractional ideal.
Note: The deeper issue of separating ideals and fractional ideals still
remains - see sagemath#3680.
#sd123
URL: sagemath#37098
Reported by: Sebastian Spindler
Reviewer(s): Peter Bruin
Why is
NumberFieldFractionalIdeal
a subclass ofIdeal_generic
?A fractional ideal is not an ideal.
This makes about as much as sense as having
Rational
be a subclass ofInteger
.This has been discussed before:
http://groups.google.com/group/sage-devel/browse_thread/thread/0b01d58d8c3565c2/c081ba96b5fed6eb?#c081ba96b5fed6eb
And it came up again recently in #1367.
There seem to be serious design issues with the whole algebraic number theory setup in Sage which make it very frustrating to do any serious work on things like #1367.
CC: @aghitza @pjbruin
Component: number fields
Issue created by migration from https://trac.sagemath.org/ticket/3680
The text was updated successfully, but these errors were encountered: