PythonIntegerFunction3D#

class cherab.lhd.emc3.cython.intfunction.PythonIntegerFunction3D#

Bases: IntegerFunction3D

Wraps a python callable object with a IntegerFunction3D object.

This class allows a python object to interact with cython code that requires a IntegerFunction3D object. The python object must implement __call__() expecting three arguments.

This class is intended to be used to transparently wrap python objects that are passed via constructors or methods into cython optimised code. It is not intended that the users should need to directly interact with these wrapping objects. Constructors and methods expecting a IntegerFunction3D object should be designed to accept a generic python object and then test that object to determine if it is an instance of IntegerFunction3D. If the object is not a IntegerFunction3D object it should be wrapped using this class for internal use.

See also

autowrap_intfunction3d

Methods

__call__

Evaluate the function f(x, y, z)

Attributes