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