Definition at line 483 of file dpoly.cpp.
484{
485 if (f == nullptr) return nullptr;
487 if (level == 0)
488 {
490 for (
int i = 0; i <= f->deg; i++)
result->arr.ints[i] = f->arr.ints[i];
491 }
492 else
493 {
495 for (int i = 0; i <= f->deg; i++)
496 result->arr.polys[i] =
copy(level - 1, f->arr.polys[i]);
497 }
499}
static TowerPolynomial alloc_poly_n(int deg, TowerPolynomial *elems=nullptr)
static TowerPolynomial copy(int level, const TowerPolynomial f)
static TowerPolynomial alloc_poly_0(int deg, long *elems=nullptr)
VALGRIND_MAKE_MEM_DEFINED & result(result)
References alloc_poly_0(), alloc_poly_n(), copy(), and result().
Referenced by add_in_place_0(), add_in_place_n(), copy(), division_in_place(), division_in_place_monic(), gcd(), gcd_coefficients(), initialize(), power_mod(), subtract_in_place_0(), and subtract_in_place_n().