1 /*
2     Copyright (C) 2010 William Hart
3     Copyright (C) 2014 Abhinav Baid
4 
5     This file is part of FLINT.
6 
7     FLINT is free software: you can redistribute it and/or modify it under
8     the terms of the GNU Lesser General Public License (LGPL) as published
9     by the Free Software Foundation; either version 2.1 of the License, or
10     (at your option) any later version.  See <http://www.gnu.org/licenses/>.
11 */
12 
13 #include "mpf_vec.h"
14 
15 void
_mpf_vec_clear(mpf * vec,slong len)16 _mpf_vec_clear(mpf * vec, slong len)
17 {
18     slong i;
19     for (i = 0; i < len; i++)
20         mpf_clear(vec + i);
21     flint_free(vec);
22 }
23