OpenTURNSPythonFunction

class OpenTURNSPythonFunction(n=0, p=0)

Override NumericalMathFunction from Python.

Parameters:

n : positive int

the input dimension

p : positive int

the output dimension

Notes

You have to overload the function:
_exec(X): single evaluation, X is a sequence of float, returns a sequence of float
You can also optionally override these functions:

_exec_sample(X): multiple evaluations, X is a 2-d sequence of float, returns a 2-d sequence of float

_gradient(X): gradient, X is a sequence of float, returns a 2-d sequence of float

_hessian(X): hessian, X is a sequence of float, returns a 3-d sequence of float

Methods

__call__(X)
getInputDescription()
getInputDimension()
getOutputDescription()
getOutputDimension()
setInputDescription(descIn)
setOutputDescription(descOut)
__init__(n=0, p=0)