| 1 | /* FunctionSeries_def.h |
| 2 | * |
| 3 | * Copyright (C) 1993-2020,2025 David Weenink, Paul Boersma 2020,2022,2025 |
| 4 | * |
| 5 | * This code is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 3 of the License, or (at |
| 8 | * your option) any later version. |
| 9 | * |
| 10 | * This code is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | /* |
| 20 | djmw 1999 |
| 21 | djmw 20020813 GPL header |
| 22 | */ |
| 23 | |
| 24 | #define ooSTRUCTcxx . . $ `dwsys/FunctionSeries_def.h:24:9`! FunctionSeries |
| 25 | oo_DEFINE_CLASScxx . . $ `sys/oo.h:176:9`! (FunctionSeries, Function) |
| 26 | |
| 27 | oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (numberOfCoefficients) |
| 28 | oo_VECcxx . . $ `sys/oo.h:74:9`! (coefficients, numberOfCoefficients) |
| 29 | |
| 30 | #if oo_DECLARINGcxx . . $ `sys/oo.h:230:9`! |
| 31 | virtual double v_evaluatecxx . . $ structFunctionSeries#v_evaluate(447c67c6676f75c3). (double x); |
| 32 | virtual dcomplexcxx . . $ dcomplex# v_evaluate_zcxx . . $ structFunctionSeries#v_evaluate_z(b85d93c470fe5288). (dcomplexcxx . . $ dcomplex# z); |
| 33 | virtual void v_evaluateTermscxx . . $ structFunctionSeries#v_evaluateTerms(c7d2ecbf502d4cf4). (double x, VECcxx . . $ VEC# terms); |
| 34 | virtual void v_getExtremacxx . . $ structFunctionSeries#v_getExtrema(a54784ab049e7c7d). (double x1, double x2, double *xmin, double *ymin, double *xmax, double *ymax); |
| 35 | virtual integercxx . . $ integer# v_getDegreecxx . . $ structFunctionSeries#v_getDegree(da6335ded91d79c2). (); |
| 36 | virtual integercxx . . $ integer# capacitycxx . . $ structFunctionSeries#capacity(da6335ded91d79c2). () { |
| 37 | return coefficientscxx . . $ structFunctionSeries#coefficients.._capacitycxx . . $ autovector#_capacity.; |
| 38 | } |
| 39 | virtual void resizecxx . . $ structFunctionSeries#resize(1624ee8275b10bda). (integercxx . . $ integer# newNumberOfCoefficients) { |
| 40 | coefficientscxx . . $ structFunctionSeries#coefficients..resizecxx . . $ autovector#resize(d91e89fbd57cd1). (newNumberOfCoefficients); |
| 41 | numberOfCoefficientscxx . . $ structFunctionSeries#numberOfCoefficients. = newNumberOfCoefficients; // maintain invariant |
| 42 | } |
| 43 | #endif |
| 44 | |
| 45 | oo_END_CLASScxx . . $ `sys/oo.h:186:9`! (FunctionSeries) |
| 46 | #undef ooSTRUCTcxx . . $ `dwsys/FunctionSeries_def.h:24:9`! |
| 47 | |
| 48 | /* End of file FunctionSeries_def.h */ |