FNFT
fnft__poly_eval.h
Go to the documentation of this file.
1 /*
2 * This file is part of FNFT.
3 *
4 * FNFT is free software; you can redistribute it and/or
5 * modify it under the terms of the version 2 of the GNU General
6 * Public License as published by the Free Software Foundation.
7 *
8 * FNFT is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * Contributors:
17 * Sander Wahls (TU Delft) 2017.
18 */
19 
26 #ifndef FNFT__POLY_EVAL_H
27 #define FNFT__POLY_EVAL_H
28 
29 #include "fnft.h"
30 
57 FNFT_INT fnft__poly_eval(const FNFT_UINT deg, FNFT_COMPLEX const * const p, \
58  const FNFT_UINT nz, FNFT_COMPLEX * const z);
59 
93 FNFT_INT fnft__poly_evalderiv(const FNFT_UINT deg, FNFT_COMPLEX const * const p, \
94  const FNFT_UINT nz, FNFT_COMPLEX * const z, \
95  FNFT_COMPLEX * const deriv);
96 
97 #ifdef FNFT_ENABLE_SHORT_NAMES
98 #define poly_eval(...) fnft__poly_eval(__VA_ARGS__)
99 #define poly_evalderiv(...) fnft__poly_evalderiv(__VA_ARGS__)
100 #endif
101 
102 #endif
FNFT_INT
int32_t FNFT_INT
Definition: fnft_numtypes.h:56
FNFT_UINT
size_t FNFT_UINT
Definition: fnft_numtypes.h:62
fnft__poly_eval
FNFT_INT fnft__poly_eval(const FNFT_UINT deg, FNFT_COMPLEX const *const p, const FNFT_UINT nz, FNFT_COMPLEX *const z)
Evaluation of polynomials.
fnft__poly_evalderiv
FNFT_INT fnft__poly_evalderiv(const FNFT_UINT deg, FNFT_COMPLEX const *const p, const FNFT_UINT nz, FNFT_COMPLEX *const z, FNFT_COMPLEX *const deriv)
Evaluation of polynomials and their derivatives.
FNFT_COMPLEX
double complex FNFT_COMPLEX
Definition: fnft_numtypes.h:47