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

Uploaded Source

Built Distribution

range_compression-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: range_compression-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 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.0.tar.gz
Algorithm Hash digest
SHA256 d31ab36bae2d0c6da4199472e3383c6c79eafdacb27f444327e52a695c36580e
MD5 543e55b82b4f3cbd64eb30249513d9fc
BLAKE2b-256 0b23c5a8f80c087d6c2d03eb2d2977e20817fbb8af4ac3d52aa9aed6c7558e7d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: range_compression-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f86568463aaaecae5f1c05800abd5aa93ba6a5be16403ad32b9af496e1a060fc
MD5 29cc7ff3b5a5f69de037ee47b2cb911b
BLAKE2b-256 5015e2cdcde93c549d6cbd49ab2bb8bdd88a9a9bb0d2bae77a4608235c3d5607

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