L3FP.gsofp_se
gso_step(basis_slice, gs_coeff_matrix, gs_squared_norms, stage)
Updates the Gram-Schmidt coefficient matrix and squared norms at a specific stage.
This function performs one step of the Gram-Schmidt orthogonalization process,
updating the entries in gs_coeff_matrix and gs_squared_norms corresponding
to the given stage. It is assumed that all entries up to stage - 1 are already
correct and up to date. If stage == 1, the squared norm at index 0 is also updated.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
basis_slice
|
ndarray
|
2D NumPy array of shape (stage, stage) corresponding the slice of basis_matrix or injected_basis_matrix. |
required |
gs_coeff_matrix
|
ndarray
|
A 2D NumPy array of shape (stage, stage), representing the Gram-Schmidt |
required |
gs_squared_norms
|
ndarray
|
A 1D NumPy array of shape (stage,), representing the squared lengths of the |
required |
Returns:
| Type | Description |
|---|---|
tuple
|
|
Source code in bkz/L3FP/gsofp_se.py
4 5 6 7 8 9 10 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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | |