IntegerFunction3D#
- class cherab.lhd.emc3.cython.IntegerFunction3D#
Bases:
objectCython optimised class for representing an arbitrary 3D function returning a integer.
Using __call__() in cython is slow. This class provides an overloadable cython cdef evaluate() method which has much less overhead than a python function call.
For use in cython code only, this class cannot be extended via python.
To create a new function object, inherit this class and implement the evaluate() method. The new function object can then be used with any code that accepts a function object.
Methods
Evaluate the function f(x, y, z)