No project description provided
Project description
矩阵区间压缩
Quick start
from range_compression import RangeCompressedMask, mask_encode
from pathlib import Path
mtx = .... # 带有很多连续值的矩阵
rcm = mask_encode(mtx)
X, Y = ..., ... # 要查找的 X, Y
res = rcm.find_index(X, Y)
assert res.shape == X.shape
assert (mtx[Y, X] == res).all()
TODO
[ ] 把性能测试添加到测试和 readme 中,每个版本做性能回归测试
[ ] 添加更多说明和直接能运行的快速入门
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file range_compression-0.2.2.tar.gz
.
File metadata
- Download URL: range_compression-0.2.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.10.10 Linux/6.1.26-1-MANJARO
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1fa030d5a06bbbf3fe48874c167e05cbf6ec4b4a10a763f5b75200a93f3fede |
|
MD5 | 91aa6e5db9faf78508633b4baa7724a2 |
|
BLAKE2b-256 | 4c30840639ca2a7c22c0b7fdfcac949611d52ced362d3b90c5182be766a805cc |
File details
Details for the file range_compression-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: range_compression-0.2.2-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.10.10 Linux/6.1.26-1-MANJARO
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3152b00b899aa958964a4c601de216461cf334b3df0cfe1f5cfca040ff9c3af1 |
|
MD5 | b149813483560d06dc1d550a40252784 |
|
BLAKE2b-256 | e0f10bd4389ccd40613cd625c3a2bb9ea50512557113de5be74bce006836b566 |