The upper bits of the field are used for negative numbers. If l2_norm_bound is larger than the field modulus divided by 2, then it will be interpreted as a negative number.
Also rename encode_f64_into_field() to encode_float_into_field() since Python doesn't have an f64 type.
The upper bits of the field are used for negative numbers. If l2_norm_bound is larger than the field modulus divided by 2, then it will be interpreted as a negative number.
Also rename
encode_f64_into_field()
toencode_float_into_field()
since Python doesn't have an f64 type.