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.1.tar.gz
.
File metadata
- Download URL: range_compression-0.2.1.tar.gz
- Upload date:
- Size: 3.5 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 | e3576c68232b7cf21f86aebd8e2ee0116cc3290c11c59482f0cbc345d1e14c4e |
|
MD5 | 2866661841a07985d0f4064b5469067f |
|
BLAKE2b-256 | 22005fbec9c5b6849b24ac122bb86122f198127d40a79738c12427dc4a890851 |
File details
Details for the file range_compression-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: range_compression-0.2.1-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 | d4aed0c13375069b3bde1203894452c64a6f8de66236b37e37e18fc39d645a8f |
|
MD5 | bb0ffec0289f38c8e46b9c564c79b848 |
|
BLAKE2b-256 | 2824cc50d4f4566d328d651d1d242d7529754834fb63e285062476a2d367700d |