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.6.tar.gz
.
File metadata
- Download URL: range_compression-0.2.6.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.3 Linux/6.1.31-2-MANJARO
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 606aa133675342a7c12695f3620450d75b1bf91055ee6076cb3ace7c8066c8aa |
|
MD5 | c9b45bc5c7394ddc0afef20583de2c67 |
|
BLAKE2b-256 | 606407c3dbcef117f2c3cd084c7276dbf22b1a8728c27587ceae0fb7194b115c |
File details
Details for the file range_compression-0.2.6-py3-none-any.whl
.
File metadata
- Download URL: range_compression-0.2.6-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.3 Linux/6.1.31-2-MANJARO
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e00735d531836902f791cd24fc6bc4bf00bd2b4440f944b2d5ebddfb76380930 |
|
MD5 | da5e14b4f843493edad8680012948c31 |
|
BLAKE2b-256 | d51295e9bfeb4176196eadc19a0397fb14a58ec284f1db1906bd6bc26d900116 |