bridge/class-master/depend/pari/src/basemath/base3.c
/* Let x be a polynomial with coefficients in Q or nf. Return the same
 * polynomial with coefficients expressed as vectors (on the integral basis).
 * No consistency checks, not memory-clean. */
Let x be a polynomial with coefficients in Q or nf. Return the same
polynomial with coefficients expressed as vectors (on the integral basis).
No consistency checks, not memory-clean.
Let x be a polynomial with coefficients in Q or nf . Return the same polynomial with coefficients expressed as vectors ( on the integral basis ) . No consistency checks not memory - clean .
GEN
RgX_to_nfX(GEN nf, GEN x)
{
  long i, l;
  GEN y = cgetg_copy(x, &l); y[1] = x[1];
  for (i=2; i<l; i++) gel(y,i) = nf_to_scalar_or_basis(nf, gel(x,i));
  return y;
}
GEN RgX_to_nfX ( GEN nf , GEN x ) { long i , l ; GEN y = cgetg_copy ( x , & l ) ; y [ 1 ] = x [ 1 ] ; for ( i = 2 ; i < l ; i ++ ) gel ( y , i ) = nf_to_scalar_or_basis ( nf , gel ( x , i ) ) ; return y ; }
Let x be a polynomial with coefficients in Q or nf.
Let x be a polynomial with coefficients in Q or nf .