PythonDynamicalFunction

class PythonDynamicalFunction(*args)

Override DynamicalFunction from Python.

Parameters:

n : positive int

the input dimension

p : positive int

the output dimension

s : positive int

the spatial dimension

func : a callable python object

called on a Field object. Returns a Field. Default is None.

Notes

func

Methods

__call__(*args)
getCallsNumber() Get the number of calls of a DynamicalFunction.
getClassName() Accessor to the object’s name.
getId() Accessor to the object’s id.
getImplementation(*args) Accessor to the underlying implementation.
getInputDescription() Get the description of the inputs.
getInputDimension() Get the dimension of the input.
getMarginal(*args) Get the marginal(s) at given indice(s).
getName() Accessor to the object’s name.
getOutputDescription() Get the description of the outputs.
getOutputDimension() Get the dimension of the output.
getOutputMesh(inputMesh) Get the mesh associated to the output process.
getSpatialDimension() Get the dimension of the mesh.
setName(name) Accessor to the object’s name.
__init__(*args)
getCallsNumber()

Get the number of calls of a DynamicalFunction.

Returns:

callsNumber : int

Counts the number of times the DynamicalFunction has been called since its creation.

getClassName()

Accessor to the object’s name.

Returns:

class_name : str

The object class name (object.__class__.__name__).

getId()

Accessor to the object’s id.

Returns:

id : int

Internal unique identifier.

getImplementation(*args)

Accessor to the underlying implementation.

Returns:

impl : Implementation

The implementation class.

getInputDescription()

Get the description of the inputs.

Returns:

inputDescription : Description

Describes the inputs of the dynamical function.

getInputDimension()

Get the dimension of the input.

Returns:

d : int

Input dimension d of the dynamical function.

getMarginal(*args)

Get the marginal(s) at given indice(s).

Parameters:

i : int or list of ints, 0 \leq i < d

Indice(s) of the marginal(s) needed. d is the dimension of the DynamicalFunction.

Returns:

dynamicalFunction : DynamicalFunction

DynamicalFunction restricted to the concerned marginal(s) at the indice(s) i of the dynamical function f_{dyn}.

getName()

Accessor to the object’s name.

Returns:

name : str

The name of the object.

getOutputDescription()

Get the description of the outputs.

Returns:

outputDescription : Description

Describes the outputs of the dynamical function.

getOutputDimension()

Get the dimension of the output.

Returns:

q : int

Output dimension q of the dynamical function.

getOutputMesh(inputMesh)

Get the mesh associated to the output process.

Returns:

outputMesh : Mesh

The mesh of the output process.

getSpatialDimension()

Get the dimension of the mesh.

Returns:

spatialDimension : int, n \geq 0

Dimension of the mesh \cM.

setName(name)

Accessor to the object’s name.

Parameters:

name : str

The name of the object.