Coverage for src\pqlattice\_backends\_protocol.py: 100%
3 statements
« prev ^ index » next coverage.py v7.11.0, created at 2026-01-10 12:32 +0100
« prev ^ index » next coverage.py v7.11.0, created at 2026-01-10 12:32 +0100
1from typing import Protocol
3from ..typing import Matrix, SquareMatrix, Vector
6class BackendInterface(Protocol):
7 def lll(self, lattice_basis: SquareMatrix, delta: float) -> SquareMatrix: ...
9 def bkz(self, lattice_basis: SquareMatrix, block_size: int, delta: float) -> SquareMatrix: ...
11 def hkz(self, lattice_basis: SquareMatrix, delta: float) -> SquareMatrix: ...
13 def shortest_vector(self, lattice_basis: SquareMatrix) -> Vector: ...
15 def hnf(self, matrix: Matrix) -> tuple[Matrix, SquareMatrix]: ...