Debian Codegraph @

include/mps/private/horner.h

raw
1 /*
2 * This file is part of MPSolve 3.2.2
3 *
4 * Copyright (C) 2001-2020, Dipartimento di Matematica "L. Tonelli", Pisa.
5 * License: http://www.gnu.org/licenses/gpl.html GPL version 3 or higher
6 *
7 * Authors:
8 * Leonardo Robol <[email protected]>
9 */
10
11 /**
12 * @file
13 * @brief Horner implementation for Monomial polynomials.
14 */
15
16 #ifndef MPS_HORNER_H_
17 #define MPS_HORNER_H_
18
19 MPS_BEGIN_DECLS
20
21 /* These two routines are implemented in newton.c */
22 void mps_parhorner (mps_context * st, int n, mpc_t x, mpc_t p[],
23 mps_boolean b[], mpc_t s, int n_thread);
24 void mps_aparhorner (mps_context * st, int n, rdpe_t x, rdpe_t p[],
25 mps_boolean b[], rdpe_t s, int n_thread);
26
27 /* The following routines are implemented in newton.c */
28 void mps_fhorner (mps_context * s, mps_monomial_poly * p, cplx_t x, cplx_t value);
29 void mps_fhorner_with_error (mps_context * s, mps_monomial_poly * p, cplx_t x,
30 cplx_t value, double * relative_error);
31 void mps_dhorner (mps_context * s, mps_monomial_poly * p, cdpe_t x, cdpe_t value);
32 void mps_dhorner_with_error (mps_context * s, mps_monomial_poly * p, cdpe_t x, cdpe_t value, rdpe_t relative_error);
33 void mps_mhorner (mps_context * s, mps_monomial_poly * p, mpc_t x, mpc_t value);
34 void mps_mhorner_with_error (mps_context * s, mps_monomial_poly * p,
35 mpc_t x, mpc_t value, rdpe_t relative_error, long int wp);
36 void mps_mhorner_with_error2 (mps_context * s, mps_monomial_poly * p, mpc_t x,
37 mpc_t value, rdpe_t relative_error, long int wp);
38
39 MPS_END_DECLS
40
41 #endif /* endif MPS_HORNER_H_ */