Skip to main content

cyhilbert

A cythonized version of that one hilbert function you keep copy-pasting. See the original implementation of Hilbert curves in O(log(n)) time. Inputs must be in the range 0 to 2^16-1, inclusive.

from cyhilbert import hilbert, DIMS, BITS_PER_DIM, MAX

DIMS #=> 2
BITS_PER_DIM #=> 16
MAX #=> 65535

hilbert(0, 0) #=> 0
hilbert(1, 0) #=> 1
hilbert(1, 1) #=> 2
hilbert(0, 1) #=> 3
hilbert(0, 2) #=> 4
hilbert(0, 3) #=> 5
hilbert(1, 3) #=> 6
hilbert(1, 2) #=> 7

Metadata

Release files for cyhilbert 1.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cyhilbert 1.3.1
File Size Uploaded Provenance Actions
cyhilbert-1.3.1.tar.gz 29.7 kB Without provenance Details for cyhilbert-1.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cyhilbert 1.3.1
File Interpreter ABI Platform Actions
cyhilbert-1.3.1-cp310-cp310-macosx_12_0_arm64.whl CPython 3.10 CPython 3.10 macOS 12.0+ ARM64 Details for cyhilbert-1.3.1-cp310-cp310-macosx_12_0_arm64.whl

Total release size: 42.1 kB

Release files / cyhilbert-1.3.1.tar.gz

Download URL cyhilbert-1.3.1.tar.gz
Size 29.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7424707030551f1c72ebf815c243fbef9cb3dbd897826f52357429ee310eb35d
BLAKE2b-256 checksum
How to use checksums
a67bdd09047a1db8fdab41658e3f314ee3ebf9c4f6764f506976a9807bc1aa33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / cyhilbert-1.3.1-cp310-cp310-macosx_12_0_arm64.whl

Download URL cyhilbert-1.3.1-cp310-cp310-macosx_12_0_arm64.whl
Size 12.4 kB
Tags CPython 3.10 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
53e83e60be0c72edd22c07bcaf14144601111d7afc970f7fa35da9fff9e31943
BLAKE2b-256 checksum
How to use checksums
f365097ef86c923bda17577a96940417c60a1228f7f34bab11c83843d96fc63d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Security for cyhilbert 1.3.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page