OPAL (Object Oriented Parallel Accelerator Library) 2024.2
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
22namespace interpolation {
23
24// note following are in interpolation namespace
26}
27
28namespace PySquarePolynomialMap {
29
34typedef struct {
35 PyObject_HEAD;
36 interpolation::SquarePolynomialVector* map;
38
46static PyObject *_alloc(PyTypeObject *type, Py_ssize_t nitems);
47
57static int _init(PyObject* self, PyObject *args, PyObject *kwds);
58
64static void _dealloc(PyPolynomialMap * self);
65
67static void _free(PyPolynomialMap * self);
68
74PyMODINIT_FUNC initsquare_polynomial_map(void);
75
85static PyObject* get_coefficients_as_matrix(PyObject *self, PyObject *args,
86 PyObject *kwds);
87
96static 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
PyObject * _alloc(PyTypeObject *type, Py_ssize_t nitems)
struct PySquarePolynomialMap::@125223376014266170355347346064077003377231340347 PyPolynomialMap
void _dealloc(PyPolynomialMap *self)
PyMODINIT_FUNC initsquare_polynomial_map(void)
void _free(PyPolynomialMap *self)
int _init(PyObject *self, PyObject *args, PyObject *kwds)
PyObject * get_coefficients_as_matrix(PyObject *self, PyObject *args, PyObject *kwds)
PyObject * evaluate(PyObject *self, PyObject *args, PyObject *kwds)
SquarePolynomialVector describes a vector of multivariate polynomials.