mirror of
https://github.com/zama-ai/concrete.git
synced 2026-01-14 23:38:10 -05:00
Instead of having one `getSQManp` implementation per op with a lot of repetition, the noise calculation is now modular. - Ops that implements`UnaryEint`/`BinaryInt`/`BinaryEint` interfaces share the operand noise presence check. - For many scalar ops no further calculation is needed. If it's not the case, an op can override `sqMANP`. - Integer operand types lookups are abstracted into `BinaryInt::operandIntType()` - Finding largest operand value for a type is abstracted into `BinaryInt::operandMaxConstant` - Noise calculation for matmul ops is simplified and it's now general enough to work for `matmul_eint_int`, `matmul_int_eint` and `dot_eint_int` at once.