fhelium.core.validation
Structural validation shared by exact CKKS value classes.
validate_context_id
function View source
python
def validate_context_id(context_id: object, *, value_name: str) -> str: ...1
Require a non-empty context identifier for a context-bound value.
validate_integral_tensor
function View source
python
def validate_integral_tensor(tensor: object, *, value_name: str) -> torch.Tensor: ...1
Require a dense tensor with an integral, non-boolean scalar dtype.
validate_nonnegative_level
function View source
python
def validate_nonnegative_level(level: object, *, value_name: str) -> int: ...1
Require one exact non-negative Python integer level.
validate_prime_ids
function View source
python
def validate_prime_ids(prime_ids: Iterable[object], *, value_name: str, allow_empty: bool=False) -> tuple[int, ...]: ...1
Require exact non-bool, non-negative, strictly ordered prime IDs.