waLLLnutFHE16 Docs

Selection operation

SELECT

Ternary conditionals and product workflows that choose between encrypted values.

Signature

Raw symbolsFHE16_SELECT
Exampleint32_t* out = FHE16_SELECT(selector, a, b);

Caller

Ternary conditionals and product workflows that choose between encrypted values.

Circuit Path

Homomorphic pathSELECT circuit; selector can be one bit or same-width vector.

Input, Output, Ownership

OutputCiphertext with selected encrypted value.
OwnershipReturned ciphertext is caller-owned.
Implementation baselineFHE16Ver6/include/soAPI/soAPI.hpp and FHE16Ver6/src/soAPI/soAPI.cpp

C Example

int32_t* out = FHE16_SELECT(selector, a, b);
FHE16_Free(out);