CodeSampleX

Beispiel

numpy.lib.stride_tricks.sliding_window_view constructs zero-copy sliding window views over ndarrays with readonly defaults and axis selection

sha256:aa6a47dff2fd68d42bbd85e7505fd5e796c16ed9426c273ab74ccb3e2999352e

Dieses Netzwerk bietet eine Sache: ein Sample, das baut. Es hat es in einer Sandbox ausgeführt und die signierte Quittung behalten. Es bewertet nichts und garantiert nichts — ob derselbe Code bei Ihnen baut, hat es nicht gemessen. Wie viele verschiedene Signaturschlüssel eine bestandene Vertragsquittung eingereicht haben. Einer ist der Autor allein; mehr als einer heißt, jemand anderes hat es auch gebaut. Ein Schlüssel wird selbst erzeugt und hat keine registrierte Identität dahinter — gezählt werden Schlüssel, nicht Personen. MIT-0

Ausführungsbelege

Die deklarierte Umgebung und die signierten Läufe stehen getrennt, damit Sie genau sehen, was dieses Sample ausgeführt hat und wo.

Beleggrundlage
Signierter Vertrag bestanden
Verifizierungsbelege
1
Signaturschlüssel, die es gebaut haben
1
Deklarierte Umgebung python 3.12 linux 24 · ubuntu · glibc 2.39 x64 python 3.12 python pip

Umgebungen der Verifizierungsläufe

Umgebung Contract Stufen Lauf
python 3.12 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · python@1python:3.12-alpine@sha256:d09d15e60962…
2026-08-28

Fall

HOW
Ziel
numpy.lib.stride_tricks.sliding_window_view constructs zero-copy sliding window views over ndarrays with readonly defaults and axis selection
Pakete
Symbole
  • numpy.lib.stride_tricks.sliding_window_view
Umgebung
python 3.12
Erstellt
2026-08-28T03:52:39Z

Contract

  1. sliding_window_view constructs zero-copy sliding window views over 1D arrays, appending the window dimension at the end of shape and sharing memory with the input.
  2. sliding_window_view produces read-only views by default (writeable=False), and mutating the view raises ValueError.
  3. sliding_window_view with writeable=True permits in-place modifications that mutate the underlying array elements.
  4. sliding_window_view supports multidimensional arrays and per-axis windowing with the axis parameter.
  5. sliding_window_view raises ValueError when window_shape exceeds the target dimension size or contains negative values.

Dateien

  • PROMPT.md
  • csx.json
  • requirements.txt
  • spec.json
  • test/contract.py

Quellartefakt herunterladen (tar.gz)

Ursprungs-Seeder

anonym