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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: range_compression-0.2.0.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.0.tar.gz
Algorithm Hash digest
SHA256 810273e729a63a01090e9718fddce6935d4ce11ebb1c52786aab1a4d5673a61e
MD5 f505fdae18989f5f9823ab041238ffab
BLAKE2b-256 b211755c351b71acf88a776473545992fee40269b66bd4ceee9ef189321d1c7f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: range_compression-0.2.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ba4545b01f6236d6df166f65af1b18b09e6c0754c73f6619751a4c289b69d1a
MD5 e7975413342c26e2356c73d4f4f3e955
BLAKE2b-256 cd9d3ffe07b2269bda06b137d764821cc8c5b48df5bd4eef94acc8b906e3b0da

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