mirror of
https://github.com/tuneinsight/lattigo.git
synced 2025-09-13 03:27:14 +00:00
fmt
This commit is contained in:
@@ -397,10 +397,10 @@ func (mltp MaskedLinearTransformationProtocol) applyTransformAndScale(transform
|
||||
|
||||
// .Int truncates (i.e. does not round to the nearest integer)
|
||||
// Thus we check if we are below, and if yes add 1, which acts as rounding to the nearest integer
|
||||
if d == big.Below{
|
||||
if d == big.Below {
|
||||
inputScaleInt.Add(inputScaleInt, new(big.Int).SetInt64(1))
|
||||
}
|
||||
|
||||
|
||||
// Scales the mask by the ratio between the two scales
|
||||
for i := range mask {
|
||||
mask[i].Mul(mask[i], mltp.defaultScale)
|
||||
|
||||
Reference in New Issue
Block a user