Selection operation
SELECT
Ternary conditionals and product workflows that choose between encrypted values.
Signature
| Raw symbols | FHE16_SELECT |
|---|---|
| Example | int32_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
| Output | Ciphertext with selected encrypted value. |
|---|---|
| Ownership | Returned ciphertext is caller-owned. |
| Implementation baseline | FHE16Ver6/include/soAPI/soAPI.hpp and FHE16Ver6/src/soAPI/soAPI.cpp |
C Example
int32_t* out = FHE16_SELECT(selector, a, b);
FHE16_Free(out);