Skip to content

Commit 2f0f2f6

Browse files
author
Matthias Koeppe
committed
src/sage/crypto/lattice.py: Docstring cosmetics
1 parent 2d897bb commit 2f0f2f6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/sage/crypto/lattice.py

+7
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,22 @@ def gen_lattice(type='modular', n=4, m=8, q=11, seed=None,
5050
5151
- ``n`` -- Determinant size, primal: `det(L) = q^n`, dual: `det(L) = q^{m-n}`.
5252
For ideal lattices this is also the degree of the quotient polynomial.
53+
5354
- ``m`` -- Lattice dimension, `L \subseteq Z^m`.
55+
5456
- ``q`` -- Coefficient size, `q-Z^m \subseteq L`.
57+
5558
- ``seed`` -- Randomness seed.
59+
5660
- ``quotient`` -- For the type ``'ideal'``, this determines the quotient
5761
polynomial. Ignored for all other types.
62+
5863
- ``dual`` -- Set this flag if you want a basis for `q-dual(L)`, for example
5964
for Regev's LWE bases [Reg2005]_.
65+
6066
- ``ntl`` -- Set this flag if you want the lattice basis in NTL readable
6167
format.
68+
6269
- ``lattice`` -- Set this flag if you want a
6370
:class:`FreeModule_submodule_with_basis_integer` object instead
6471
of an integer matrix representing the basis.

0 commit comments

Comments
 (0)