Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Rename from order_ideal to order_fractional_ideal
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinywlui committed Aug 19, 2019
1 parent 0322e56 commit e487c7e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/sage/rings/number_field/number_field_ideal.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
from sage.rings.finite_rings.finite_field_constructor import FiniteField


from sage.rings.number_field.order_ideal import OrderIdeal
from sage.rings.number_field.order_fractional_ideal import OrderFractionalIdeal
from sage.misc.all import prod
from sage.misc.mrange import xmrange_iter
from sage.misc.cachefunc import cached_method
Expand All @@ -63,7 +63,7 @@
ZZ = integer_ring.IntegerRing()


class NumberFieldIdeal(OrderIdeal):
class NumberFieldIdeal(OrderFractionalIdeal):
"""
An ideal of a number field.
"""
Expand Down Expand Up @@ -134,7 +134,7 @@ def __init__(self, field, gens, coerce=True):
gens = [field(gens, check=False)]
if len(gens)==0:
raise ValueError("gens must have length at least 1 (zero ideal is not a fractional ideal)")
OrderIdeal.__init__(self, field.ring_of_integers(), gens, coerce)
OrderFractionalIdeal.__init__(self, field.ring_of_integers(), gens, coerce)
if field.absolute_degree() == 2:
self.quadratic_form = self._quadratic_form

Expand Down
8 changes: 4 additions & 4 deletions src/sage/rings/number_field/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ def fractional_ideal(self, *args, **kwds):
if self.is_maximal:
return self.number_field().fractional_ideal(*args, **kwds)
else:
from sage.rings.number_field.order_ideal import OrderIdeal
return OrderIdeal(self, args, **kwds)
from sage.rings.number_field.order_fractional_ideal import OrderFractionalIdeal
return OrderFractionalIdeal(self, args, **kwds)

def ideal(self, *args, **kwds):
"""
Expand Down Expand Up @@ -237,8 +237,8 @@ def ideal(self, *args, **kwds):
if self.is_maximal():
I = self.number_field().ideal(*args, **kwds)
else:
from sage.rings.number_field.order_ideal import OrderIdeal
I = OrderIdeal(self, args, **kwds)
from sage.rings.number_field.order_fractional_ideal import OrderFractionalIdeal
I = OrderFractionalIdeal(self, args, **kwds)
if not I.is_integral():
raise ValueError("ideal must be integral; use fractional_ideal to create a non-integral ideal.")
return I
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from sage.rings.ideal import Ideal_generic


class OrderIdeal(Ideal_generic):
class OrderFractionalIdeal(Ideal_generic):
"""
An ideal of a number field order.
"""
Expand Down

0 comments on commit e487c7e

Please sign in to comment.