generators package

base module

Base class for generating code in different programming languages, gives the methods which should be overridden to implement a new language.

Exported members: CodeGenerator

Classes

CodeGenerator(variables, variable_indices, ...) Base class for all languages.

cpp_generator module

Exported members: CPPCodeGenerator, c_data_type()

Classes

CPPCodeGenerator(\*args, \*\*kwds) C++ language

Functions

c_data_type(dtype) Gives the C language specifier for numpy data types.

cython_generator module

Exported members: CythonCodeGenerator

Classes

CythonCodeGenerator(variables, ...[, ...]) Cython code generator
CythonNodeRenderer([use_vectorisation_idx])

Methods

Functions

get_cpp_dtype(obj)
get_numpy_dtype(obj)

numpy_generator module

Exported members: NumpyCodeGenerator

Classes

NumpyCodeGenerator(variables, ...[, ...]) Numpy language
VectorisationError

Functions

ceil_func(value)
clip_func(array, a_min, a_max)
floor_func(value)
int_func(value)
rand_func(vectorisation_idx)
randn_func(vectorisation_idx)