示例#1
0
文件: CModulus.cpp 项目: TomMD/HElib
inline void conv(NTL::vec_zz_p& to, NTL::vec_long& from)
{
  to.SetLength(from.length());
  for (long i=0; i<from.length(); i++) conv(to[i], from[i]);
  // It is assumed that the NTL modulus is already set
}
示例#2
0
文件: CModulus.cpp 项目: dwu4/fhe-si
inline void conv(NTL::vec_zz_p& to, NTL::vec_long& from)
{
  to.SetLength(from.length());
  for (long i=0; i<from.length(); i++) conv(to[i], from[i]);
}