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

Commit

Permalink
Cleaning up code.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeines committed Aug 22, 2016
1 parent 535ae3e commit ea49228
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/modules/free_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -5571,7 +5571,7 @@ def _pseudo_hermite_matrix(self,ideal_list = None):
sage: VA._pseudo_hermite_matrix([F.ideal(1)])
Traceback (most recent call last):
...
ValueError: gens and ideal_list must have the same lenghth
ValueError: gens and ideal_list must have the same length
sage: VB = (ZF^4).span(B)
sage: VB._pseudo_hermite_matrix()
(
Expand Down Expand Up @@ -5650,7 +5650,7 @@ def _pseudo_hermite_matrix(self,ideal_list = None):
return self.basis_matrix().hermite_form()
elif ZF is sage.rings.integer_ring.ZZ:
if len(self.gens()) != len(ideal_list):
raise ValueError("gens and ideal_list must have the same lenghth")
raise ValueError("gens and ideal_list must have the same length")
gens = [g*ids.gen() for g,ids in zip(self.gens(),ideal_list)]
M = sage.matrix.constructor.matrix(gens).hermite_form()
return M
Expand All @@ -5663,7 +5663,7 @@ def _pseudo_hermite_matrix(self,ideal_list = None):
if ideal_list is None:
ideal_list = [F.ideal(1)] * len(self.gens())
elif len(self.gens()) != len(ideal_list):
raise ValueError("gens and ideal_list must have the same lenghth")
raise ValueError("gens and ideal_list must have the same length")
pari_ideal_list = [id._pari_() for id in ideal_list]
HM, HI = PF.nfhnf([BM._pari_(), pari_ideal_list])

Expand Down

0 comments on commit ea49228

Please sign in to comment.