cyhilbert-1.3.1
توضیحات
A cythonized version of that one hilbert function you keep copy-pasting.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cyhilbert-1.3.1 |
| نام | cyhilbert |
| نسخه کتابخانه | 1.3.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Danny Whalen |
| ایمیل نویسنده | daniel.r.whalen@gmail.com |
| آدرس صفحه اصلی | https://github.com/invisiblefunnel/cyhilbert |
| آدرس اینترنتی | https://pypi.org/project/cyhilbert/ |
| مجوز | MIT |
# 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](http://threadlocalmutex.com/?p=126). Inputs must be in the range 0 to 2^16-1, inclusive.
```python
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
```
نیازمندی
| مقدار | نام |
|---|---|
| - | mypy |
| - | hilbertcurve |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3 | Python |
نحوه نصب
نصب پکیج whl cyhilbert-1.3.1:
pip install cyhilbert-1.3.1.whl
نصب پکیج tar.gz cyhilbert-1.3.1:
pip install cyhilbert-1.3.1.tar.gz