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.1.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

range_compression-0.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: range_compression-0.1.1.tar.gz
  • Upload date:
  • Size: 3.3 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.1.1.tar.gz
Algorithm Hash digest
SHA256 7bdb752a454386d4ee81fc4b74a1c542481bd5a33aa4be9b552f032567defc54
MD5 053edd33e8b951edc0c1537a79c659cc
BLAKE2b-256 926c83f704d7e19bee7572587aeb12437146a24f122483a3311977e7f8c86320

See more details on using hashes here.

File details

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

File metadata

  • Download URL: range_compression-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8784715019a7ed64d574c3d9be4f6288643d3761e4b43eb9649dcb2dee744ded
MD5 dae41677b01d6745a725ea3992cc4ee2
BLAKE2b-256 81ea44d55179d1ae19546a446234d587832d2c39bc07953e97dbb289d604bd80

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