numbast.types#

Functions

is_c_floating_type(typ_str)

is_c_integral_type(typ_str)

register_cxx_type(cxx_name, numba_type)

Register an external C++ type in numbast's type registry.

register_enum_type(cxx_name, e)

Register a mapping from a C++ enum type name to its corresponding Numba type.

to_c_type_str(nbty)

Convert a Numba type to its corresponding C/C++ type string.

to_numba_arg_type(ast_type)

Map an ast_canopy Type to the corresponding Numba type for use as a function argument.

to_numba_type(ty)

Map a C/C++ type string to the corresponding Numba type.

Classes

FunctorType(*args, **kwargs)