Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

range_compression-0.2.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

range_compression-0.2.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file range_compression-0.2.3.tar.gz.

File metadata

  • Download URL: range_compression-0.2.3.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

Hashes for range_compression-0.2.3.tar.gz
Algorithm Hash digest
SHA256 ea062ff411819a978a984c4472dc6008edcb7946de92e6790e16d4c0b8e0c8e2
MD5 5bd291f1980b70bc93618288311a42db
BLAKE2b-256 bfb3d86928d4bbd12fdf6332cb625b19de75a931dfe351083c31bdfaa376e80f

See more details on using hashes here.

File details

Details for the file range_compression-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: range_compression-0.2.3-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

Hashes for range_compression-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2c9b184bc43069cb10f60c1fbeeef206ca89c7130979f48c4bed6c4152ae4338
MD5 27c13cf2b72ba481c083bef1b405d369
BLAKE2b-256 e85627480902f5e5ff2ff2aa2ad3c36bf2c01b0a33d5e075a607e8051d1e69ba

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page