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

Function Documentation

Matrix<int32_t> lbcrypto::ConvertToInt32(const Matrix<BigVector> &input, const BigInteger &modulus)

Convert a matrix of BigVector to int32_t Convert from Z_q to (-q/2, q/2]

Parameters
  • input – the input matrix

  • modulus – the ring modulus

Throws

OpenFHEException – if a centered value cannot be represented as int32_t

Returns

the resulting matrix of int32_t