NumPy Cursor
This repository contains a Python implementation of a cursor for NumPy matrices. The cursor allows you to conveniently move through a matrix and read or modify its values.
The cursor class has the following methods:
__init__(self, matrix): Initializes the cursor with a NumPy matrix.left(self, steps=1): Moves the cursor left bystepscolumns.right(self, steps=1): Moves the cursor right bystepscolumns.up(self, steps=1): Moves the cursor up bystepsrows.down(self, steps=1): Moves the cursor down bystepsrows.move(self, row_steps, col_steps): Moves the cursor byrow_stepsrows andcol_stepscolumns.set(self, row, col): Set the cursor byrowrows andcolcolumns.coordinates: Returns the current row and column coordinates of the cursor.isEmpty: ReturnsTrueif the value of the matrix at the current cursor position is zero, andFalseotherwise.setItem(self, item): Setting the value of the cursor cell byitem.__repr__(self): Returns a string representation of the value of the matrix at the current cursor position.__str__(self): Returns a string representation of the value of the matrix at the current cursor position.
The implementation also includes error checking to prevent moving the cursor beyond the boundaries of the matrix.
Metadata
Release files for numpy-cursor 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| numpy_cursor-1.0.5.tar.gz | 2.5 kB | Without provenance | Details for numpy_cursor-1.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| numpy_cursor-1.0.5-py3-none-any.whl | Python 3 | none | any | Details for numpy_cursor-1.0.5-py3-none-any.whl |
Total release size: 9.2 kB
Release files / numpy_cursor-1.0.5.tar.gz
| Download URL | numpy_cursor-1.0.5.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4bbb70f95bf042bab631edd2e6b8545eb6a9aea0840e9bfcf49c14383100cdcc
|
|
BLAKE2b-256 checksum How to use checksums |
b59c7cd73d22f17795d125d639f759f9664884079d82e2fa2f785e75781a9f39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.6
|
Release files / numpy_cursor-1.0.5-py3-none-any.whl
| Download URL | numpy_cursor-1.0.5-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb6b0a87993d05646f64af9374cefe513571879d5c70522b0e0900c745f95035
|
|
BLAKE2b-256 checksum How to use checksums |
17a77822a8b3d1815ff4a0853f36d9ac2e3f001f9b119bba7917ac998cd82210
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.6
|
Security for numpy-cursor 1.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.