| 1 | Source: cyarray |
| 2 | Maintainer: Debian Science Maintainers <[email protected]> |
| 3 | Uploaders: Antonio Valentino <[email protected]> |
| 4 | Section: python |
| 5 | Testsuite: autopkgtest-pkg-pybuild |
| 6 | Priority: optional |
| 7 | Build-Depends: cython3, |
| 8 | debhelper-compat (= 13), |
| 9 | dh-python, |
| 10 | dh-sequence-numpy3, |
| 11 | dh-sequence-python3, |
| 12 | python3-all-dev, |
| 13 | python3-mako, |
| 14 | python3-numpy, |
| 15 | python3-pytest <!nocheck>, |
| 16 | python3-pytest-benchmark <!nocheck>, |
| 17 | python3-setuptools |
| 18 | Standards-Version: 4.7.2 |
| 19 | Vcs-Browser: https://salsa.debian.org/science-team/cyarray |
| 20 | Vcs-Git: https://salsa.debian.org/science-team/cyarray.git |
| 21 | Homepage: https://github.com/pypr/cyarray |
| 22 | Rules-Requires-Root: no |
| 23 | |
| 24 | Package: python3-cyarray |
| 25 | Architecture: any |
| 26 | Depends: ${misc:Depends}, |
| 27 | ${python3:Depends}, |
| 28 | ${shlibs:Depends} |
| 29 | Description: Fast, typed, resizable, Cython array |
| 30 | The cyarray package provides a fast, typed, re-sizable, Cython array. |
| 31 | . |
| 32 | It currently provides the following arrays: ``IntArray, UIntArray, |
| 33 | LongArray, FloatArray, DoubleArray``. |
| 34 | . |
| 35 | All arrays provide for the following operations: |
| 36 | . |
| 37 | - access by indexing. |
| 38 | - access through get/set function. |
| 39 | - resizing the array. |
| 40 | - appending values at the end of the array. |
| 41 | - reserving space for future appends. |
| 42 | - access to internal data through a numpy array. |
| 43 | . |
| 44 | If you are writing Cython code this is a convenient array to use as it |
| 45 | exposes the raw underlying pointer to the data. |
| 46 | For example if you use a ``FloatArray`` and access its ``data`` |
| 47 | attribute it will be a ``float*``. |
| 48 | . |
| 49 | Each array also provides an interface to its data through a numpy |
| 50 | array. |
| 51 | This is done through the ``get_npy_array`` function. |
| 52 | The returned numpy array can be used just like any other numpy array |
| 53 | but for the following restrictions: |
| 54 | . |
| 55 | - the array may not be resized. |
| 56 | - references of this array should not be kept. |
| 57 | - slices of this array may not be made. |
| 58 | . |
| 59 | The numpy array may however be copied and used in any manner. |