basis_quality_evaluation
compute_basis_quality_characteristics(basis, reduced)
Computes key quality metrics for a lattice basis. This function evaluates the shortest vector norm, Hermite factor, and orthogonality defect for a given lattice basis. If the basis is not reduced, column norms are sorted to provide a more meaningful comparison.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
basis
|
ndarray
|
A 2D NumPy array of shape (n, n) representing the lattice basis. |
required |
reduced
|
bool
|
Indicates whether the basis is already reduced. If False, column norms are sorted before computing metrics. |
required |
Returns:
| Type | Description |
|---|---|
list
|
A list containing Shortest column norm (float), Hermite factor (float), Orthogonality defect (float). |
Source code in bkz/BasisQualityEvaluation/basis_quality_evaluation.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | |