Exemple #1
0
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
}
Exemple #2
0
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]);
}