2016-04-26 17:20:05 +02:00
|
|
|
/*
|
2012-10-08 16:28:28 +02:00
|
|
|
Copyright (C) 2012 Fredrik Johansson
|
|
|
|
|
2016-04-26 17:20:05 +02:00
|
|
|
This file is part of Arb.
|
|
|
|
|
|
|
|
Arb is free software: you can redistribute it and/or modify it under
|
|
|
|
the terms of the GNU Lesser General Public License (LGPL) as published
|
|
|
|
by the Free Software Foundation; either version 2.1 of the License, or
|
|
|
|
(at your option) any later version. See <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2012-10-08 16:28:28 +02:00
|
|
|
|
2013-01-23 15:54:38 +01:00
|
|
|
#include "hypgeom.h"
|
2012-10-08 16:28:28 +02:00
|
|
|
|
|
|
|
void
|
|
|
|
hypgeom_init(hypgeom_t hyp)
|
|
|
|
{
|
|
|
|
fmpz_poly_init(hyp->A);
|
|
|
|
fmpz_poly_init(hyp->B);
|
|
|
|
fmpz_poly_init(hyp->P);
|
|
|
|
fmpz_poly_init(hyp->Q);
|
2014-06-12 20:23:36 +02:00
|
|
|
mag_init(hyp->MK);
|
2012-10-08 16:28:28 +02:00
|
|
|
hyp->have_precomputed = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
hypgeom_clear(hypgeom_t hyp)
|
|
|
|
{
|
|
|
|
fmpz_poly_clear(hyp->A);
|
|
|
|
fmpz_poly_clear(hyp->B);
|
|
|
|
fmpz_poly_clear(hyp->P);
|
|
|
|
fmpz_poly_clear(hyp->Q);
|
2014-06-12 20:23:36 +02:00
|
|
|
mag_clear(hyp->MK);
|
2012-10-08 16:28:28 +02:00
|
|
|
}
|