Function lbcrypto::ConvertToInt32(const MatrixStrassen<BigInteger>&, const BigInteger&)

Function Documentation

inline MatrixStrassen<int32_t> lbcrypto::ConvertToInt32(const MatrixStrassen<BigInteger> &input, const BigInteger &modulus)

Convert a matrix of integers from BigInteger to int32_t Convert from Z_q to [-q/2, q/2]

Parameters
  • &input – the input matrix

  • &modulus – the ring modulus

Returns

the resulting matrix of int32_t