OPAL (Object Oriented Parallel Accelerator Library)  2024.1
OPAL
PySquarePolynomialMap.h
Go to the documentation of this file.
1 //
2 // Python API for PolynomialCoefficient (part of the multidimensional polynomial fitting routines)
3 //
4 // Copyright (c) 2008-2023, Chris Rogers, STFC Rutherford Appleton Laboratory, Didcot, UK
5 //
6 // This file is part of OPAL.
7 //
8 // OPAL is free software: you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation, either version 3 of the License, or
11 // (at your option) any later version.
12 //
13 // You should have received a copy of the GNU General Public License
14 // along with OPAL. If not, see <https://www.gnu.org/licenses/>.
15 //
16 
17 #ifndef PYOPAL_PySquarePolynomialMap_H
18 #define PYOPAL_PySquarePolynomialMap_H
19 
20 #include <Python.h>
21 
22 namespace interpolation {
23 
24 // note following are in interpolation namespace
25 class SquarePolynomialVector;
26 }
27 
28 namespace PySquarePolynomialMap {
29 
34 typedef struct {
38 
46 static PyObject *_alloc(PyTypeObject *type, Py_ssize_t nitems);
47 
57 static int _init(PyObject* self, PyObject *args, PyObject *kwds);
58 
64 static void _dealloc(PyPolynomialMap * self);
65 
67 static void _free(PyPolynomialMap * self);
68 
74 PyMODINIT_FUNC initsquare_polynomial_map(void);
75 
85 static PyObject* get_coefficients_as_matrix(PyObject *self, PyObject *args,
86  PyObject *kwds);
87 
96 static PyObject* evaluate(PyObject *self, PyObject *args,
97  PyObject *kwds);
98 
107 // static PyObject* point_dimension(PyObject *self, PyObject *args,
108 // PyObject *kwds);
109 
118 // static PyObject* value_dimension(PyObject *self, PyObject *args,
119 // PyObject *kwds);
120 
129 // static PyObject* str(PyObject *self, PyObject *args, PyObject *kwds);
130 
131 } // namespace PySquarePolynomialMap
132 
133 #endif // PYOPAL_PySquarePolynomialMap_H
interpolation::SquarePolynomialVector * map
void _dealloc(PyPolynomialMap *self)
int _init(PyObject *self, PyObject *args, PyObject *kwds)
PyObject * _alloc(PyTypeObject *type, Py_ssize_t nitems)
PyObject * get_coefficients_as_matrix(PyObject *self, PyObject *args, PyObject *kwds)
SquarePolynomialVector describes a vector of multivariate polynomials.
PyObject * evaluate(PyObject *self, PyObject *args, PyObject *kwds)
PyMODINIT_FUNC initsquare_polynomial_map(void)
void _free(PyPolynomialMap *self)
SDDS1 &description type
Definition: test.stat:4