Skip to content

Commit 0ea1810

Browse files
committed
More more fixes
1 parent 966cdc8 commit 0ea1810

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/sage/modules/free_module_integer.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -898,14 +898,14 @@ def babai(self, *args, **kwargs):
898898
return self.approximate_closest_vector(*args, **kwargs)
899899

900900
def hadamard_ratio(self, use_reduced_basis=True):
901-
"""
901+
r"""
902902
Computes the normalized Hadamard ratio of the given basis.
903903
904-
The normalized Hadamard ratio of the basis `B = \{v_1, v_2, \dots, v_n\}` is defined as
904+
The normalized Hadamard ratio of the basis `B = {v_1, v_2, \dots, v_n}` is defined as
905905
906906
.. MATH::
907907
908-
\mathcal{H}(B) = \left(\dfrac{det L}{\|v_1\| \|v_2\| \cdots \|v_n\|}\right)^{\frac{1}{n}}
908+
\mathcal{H}(B) = \dfrac{det L}{\|v_1\| \|v_2\| \cdots \|v_n\|}^{\dfrac{1}{n}}
909909
910910
911911
The closer this ratio is to 1, the more orthogonal the basis is.
@@ -944,14 +944,13 @@ def hadamard_ratio(self, use_reduced_basis=True):
944944
return ratio
945945

946946
def gaussian_heuristic(self, exact_form=False):
947-
"""
948-
Computes the Gaussian expected shortest length, also known as the Gaussian
947+
r"""
948+
Computes the Gaussian expected shortest length, also known as the Gaussian
949949
heuristic. This estimates the expected norm of the shortest non-zero vector
950950
in the lattice. The heuristic is independent of the chosen basis.
951951
952952
INPUT:
953-
- ``exact_form`` -- boolean (default: ``False``); uses exact formulation
954-
based on gamma function, instead of estimation of the gamma function
953+
- ``exact_form`` -- boolean (default: ``False``); uses exact formulation based on gamma function, instead of estimation of the gamma function
955954
956955
OUTPUT: The Gaussian heuristic described above.
957956

0 commit comments

Comments
 (0)