Shift Nth Row N Steps
Documentation: https://shift-nth-row-n-steps.readthedocs.io
Source Code: https://github.com/34j/shift-nth-row-n-steps
Shift Nth row N steps in NumPy / PyTorch / TensorFlow / JAX
Installation
Install this via pip (or your favourite package manager):
pip install shift-nth-row-n-steps
Usage
from shift_nth_row_n_steps import shift_nth_row_n_steps
a = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
shifted = shift_nth_row_n_steps(a)
print(shifted)
[[1 2 3]
[0 4 5]
[0 0 7]]
shift_nth_row_n_steps is array API compatible, which means it works with NumPy, PyTorch, JAX, and other libraries that implement the array API standard.
Benchmark
Algorithm
Contributors ✨
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
Credits
This package was created with Copier and the browniebroke/pypackage-template project template.
Metadata
Release files for shift-nth-row-n-steps 1.0.0
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 |
|---|---|---|---|---|
| shift_nth_row_n_steps-1.0.0.tar.gz | 12.7 kB | With provenance | Details for shift_nth_row_n_steps-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shift_nth_row_n_steps-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for shift_nth_row_n_steps-1.0.0-py3-none-any.whl |
Total release size: 22.3 kB
Release files / shift_nth_row_n_steps-1.0.0.tar.gz
| Download URL | shift_nth_row_n_steps-1.0.0.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16f2a7ea004eefe66775e037ef1cda51ecee359b67349d7c9ff67b9832fbe62a
|
|
BLAKE2b-256 checksum How to use checksums |
42b0d0d8fc306b044408413a2a1e192c5d557f3352cc16bf4df8e7274528d64c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 30, 2025.
Transparency logRelease files / shift_nth_row_n_steps-1.0.0-py3-none-any.whl
| Download URL | shift_nth_row_n_steps-1.0.0-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9db27ad13808ba11ab1df6b9037d36b87d9ccad657b7f98f6cc595484239f1f0
|
|
BLAKE2b-256 checksum How to use checksums |
f36fe529f70216bc4d6ecba9b679f485b67653153d61f32cfac2275dea0aee99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 30, 2025.
Transparency logSecurity for shift-nth-row-n-steps 1.0.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for shift_nth_row_n_steps-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 30, 2025.
Transparency logA 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.