SEAL/seal2/encoder.cpp
// We encode differently based on whether the base is odd or even.
We encode differently based on whether the base is odd or even.
We encode differently based on whether the base is odd or even .
Plaintext BalancedFractionalEncoder::encode(double value)
    {
        if (encoder_.base_ & 1)
        {
            return encode_odd(value);
        }
        else
        {
            return encode_even(value);
        }
    }
Plaintext BalancedFractionalEncoder :: encode ( double value ) { if ( encoder_ . base_ & 1 ) { return encode_odd ( value ) ; } else { return encode_even ( value ) ; } }
We encode differently based on whether the base is odd or even.
We encode differently based on whether the base is odd or even .