Arithmetic operation
ABS
Signed division, signed modulo, scoring, and range normalization.
Signature
| Raw symbols | FHE16_ABS |
|---|---|
| Example | int32_t* out = FHE16_ABS(a); |
Caller
Signed division, signed modulo, scoring, and range normalization.
Circuit Path
Homomorphic pathPrefixABS path over encrypted sign and magnitude bits.
Input, Output, Ownership
| Output | n-bit absolute-value ciphertext. |
|---|---|
| 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_ABS(a);
FHE16_Free(out);