Welcome to the Cythonarrays documentation!

Cythonarray has been developed to facilitate the use of Cython Cdef-classes with numpy-arrays

License: GPL v3 Build Status Linux Build Status Windows codecov

cythonarrays

Python Packages to facilitate cython cdef-classes that expose memoryviews as numpy arrays.

cythonarrays:

PyPI version Anaconda-Server Badge

provides a Base-Class for cython CDef-Classes, that allow to define arrays as attributes which can be used in cython code as fast memoryviews and at the same time be accessed from python as numpy-arrays In addition, the dimensions and shapes of data assigned to the arrays is checked automatically. If you try to set data with wrong dimensions or shapes, an error is thrown. Data is automatically converted to the right dtype.

Documentation

Installation

You can use pip to install the packages (and the requirements like numpy).

pip install cythonarrays

Another way to handle dependencies is to use conda.

There conda packages for python 3.8-3.12 for windows and linux are generated in the channel MaxBo in Anaconda Cloud.

conda create -n myenv python=3.12
conda activate myenv

conda config --add channels conda-forge
conda config --add channels MaxBo

conda install cythonarrays

This documentation contains

Contents:

Description


Code Documentation

Indices and tables