예제 #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]);
}