pyccel.ast.numpy_wrapper module

pyccel.ast.numpy_wrapper module#

Handling the transitions between Python code and C code using (Numpy/C Api).

class pyccel.ast.numpy_wrapper.PyccelPyArrayObject(self)[source]#

Bases: FixedSizeType

Datatype representing a PyArrayObject.

Datatype representing a PyArrayObject which is the class used to hold NumPy array objects in Python.

pyccel.ast.numpy_wrapper.get_numpy_max_acceptable_version_file()[source]#

Get the macro specifying the most recent acceptable NumPy version.

Get the macro specifying the most recent acceptable NumPy version. If NumPy is more recent than this then deprecation warnings are shown.

The most recent acceptable NumPy version is 1.19. If the current version is older than this then the last acceptable NumPy version is the current version.

Returns:

A string containing the code which defines the macro.

Return type:

str