Commit 507c389
Release Manager
gh-37098: Fixed random_element() for fractional ideals in rational 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 #3680.
#sd123
URL: #37098
Reported by: Sebastian Spindler
Reviewer(s): Peter Bruin
1 file changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2295 | 2295 | | |
2296 | 2296 | | |
2297 | 2297 | | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
2298 | 2312 | | |
2299 | 2313 | | |
2300 | 2314 | | |
| |||
0 commit comments