all your matrix representations belong here!
Project description
mattress
This project provides tatami matrix representations in Python.
Install
Package is published to PyPI
pip install mattress
Usage
Currently only supports dense matrices.
To convert a numpy dense matrix to tatami representation -
import numpy as np
from mattress import tatamize
x = np.random.rand(1000, 100)
tatamat = tatamize(y)
Methods are available to access the matrix by row
, column
tatamat.row(0)
tatamat.column(1)
Additionally you can also specify if the input matrix is a column or row major.
x = np.ones((2, 3), order='F')
tatamat = tatamize(y, order="F")
Developer Notes
Steps to setup dependencies -
- initialize git submodules in
extern/tatami
&extern/tatami_hdf5
First one needs to build the extern library, this would generate a shared object file to src/mattress/core-[*].so
python setup.py build_ext --inplace
For typical development workflows, run this for tests
python setup.py build_ext --inplace && tox
Note
This project has been set up using PyScaffold 4.5. For details and usage information on PyScaffold see https://pyscaffold.org/.
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 Distributions
Hashes for mattress-0.0.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff6bc98e31cce8f3d4ebeab419392d1515d25239def044d2f4ccc1ba41c8a0e0 |
|
MD5 | ac8cf078473e1ff4b552b85a3f572118 |
|
BLAKE2b-256 | 3ed980cd2504b43265af7114a37752a3df90d62a2a49b549dbf33d4b82d4ccd5 |
Hashes for mattress-0.0.2-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b20a5741e6e3e41858f1be03002c0de1a7344534a83fae6f882b9d3624ebf7a |
|
MD5 | 6824291baf732e10af0891e98cafa548 |
|
BLAKE2b-256 | d0b2a16cb99981e493cc9f21d4036b9b8436d81e55a760c234c6360215510fd4 |
Hashes for mattress-0.0.2-pp39-pypy39_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f353b15b98b5b44a0c4b40ac08be819e39bb39d9c41b05507a96ff71a33f1347 |
|
MD5 | 62461b010744f1181b2d6d5dad444c70 |
|
BLAKE2b-256 | 77da818ae5c1cf33642b7677bba3016fabcb1d5dc2c80e679759c485bba736c4 |
Hashes for mattress-0.0.2-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc2bae7e7a83b8aad7061ddddbc539f8560b3243aee2931382e2d0b35de0b685 |
|
MD5 | 3ce1b709b2c808a90913c97071412857 |
|
BLAKE2b-256 | fc8f515f121142208fa44283a423fbe6afd85ec3e5ce2efcd0a9d05b918ded2a |
Hashes for mattress-0.0.2-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9915e2bda6d618860d7f4431d2f550be211b8492aa92740d2bec9a8c8b944875 |
|
MD5 | 4136e67c7fd0a4b66053e1d4c3100bea |
|
BLAKE2b-256 | 5d3d54e8aa8047edeec7223d9a10329faf5c96df1373c0f5cb0dace110bd1377 |
Hashes for mattress-0.0.2-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c45080cfbc7b5517082eeae4561d32b167d3c091cbbd5488cf27ea457d7ea068 |
|
MD5 | d9ff02d615af572066538ddb9a9054bf |
|
BLAKE2b-256 | e4dd5423be9fb4c3e224ef1fd34bfc5aa0a8c0ac93b705c933f9d77fa66e4448 |
Hashes for mattress-0.0.2-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3389c8ecedf56c361c1b52c94db3706aa02d6193f1656f92703214946005bcff |
|
MD5 | 825d6850716b30ccac1a6bf6861df3fb |
|
BLAKE2b-256 | e87ee2483926d7415431f4c4fd6c7d4f596668362a56180bcd27c0d87ad61ec2 |
Hashes for mattress-0.0.2-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a653160900507daeb0b9a684db8a658a3e958579615439ec7f7803e1d624184b |
|
MD5 | 5a2e5f3f14a0e37629dca6c42d9d3f4c |
|
BLAKE2b-256 | 3cf9b5f1be6b2848104802160936b1497c5d49fa0a619a8152ab06818cd65e1b |
Hashes for mattress-0.0.2-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b9e51ed2d40c8f697e37e6b5dd3a752b4af275b6b979559b22763d29c984482 |
|
MD5 | c7ca1b5a8659da574ec1371b8d626acb |
|
BLAKE2b-256 | 554f20e49b39f057b6b6824da35dae8a9a16886368358530e58e60f6ef9a0412 |
Hashes for mattress-0.0.2-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebd9c21b09df94ec48da6389b271ace7741bdc5d7b324b7a18771921bcc6541e |
|
MD5 | e84e7309e8d896a433449fc97a1a95e6 |
|
BLAKE2b-256 | 0e8bef9dfb6f2d5c6fbf86a29c71a69a5b800e0860f4799e12665bbb38413bf8 |
Hashes for mattress-0.0.2-cp311-cp311-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09ba9117b93fa1be5ffbfee087f771d6b40c347e09861754d09406b3528291b2 |
|
MD5 | 5db8379d1d7164d862973941110db84f |
|
BLAKE2b-256 | 49dd303e873aba668fc254ff9e0fe3a45b6f722657c97a75a4fb5250d80ed807 |
Hashes for mattress-0.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77025a1f13689b869d2979a268e89de932b59ac7590ff19d7cb067e13d2f759c |
|
MD5 | 597c153de330421ad752d5f32d1c63bc |
|
BLAKE2b-256 | 9568c743b05955a26efcc47454cffa774ecf084601a7da6603428f7a345c2159 |
Hashes for mattress-0.0.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af0001d24512842b908de154fbb9cdac4e44b762d5eb8e5e222cbbfc7c6c52c5 |
|
MD5 | 051746102f197a94ed31f355422961ce |
|
BLAKE2b-256 | a74b85c2244d1de302efb383b4f8dda5345754a8938ea1cb778e31d9388d5fd1 |
Hashes for mattress-0.0.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a477bbcd3de43d104d83d34d476872136c1e0bcff91b98df9cb1c4ae29453f57 |
|
MD5 | 9cc83fcef81f382e843a75cd9082717b |
|
BLAKE2b-256 | eab54057298ee728c8a120ec963d58f3ca9dea33d1ae3beea3db3bd6ea2d9a55 |
Hashes for mattress-0.0.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5233bef6de04dadf525534a49cb28a80320faaf822f9d1b532217b02d16d145 |
|
MD5 | 4c88fe2b09d8068e9cdace9f20bcbca0 |
|
BLAKE2b-256 | be1a26ccdfe0e5b9264c645183cb741af729521d12207529395e975053f86cde |
Hashes for mattress-0.0.2-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa3c1b66afb3d2d37b0e5260df3b01d9f96d96033b15e64a66be4acc13e79703 |
|
MD5 | fc7497b77f019dd78ab7ede4268ca748 |
|
BLAKE2b-256 | b517f62e339226df4e7d80897aadb9c87efbbb4c15eabd8d5bb8ccf96c73bcd1 |
Hashes for mattress-0.0.2-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6894775ee147551c78bed19220eb760cce3356e7e3373a0b2d3c203fe6686af7 |
|
MD5 | 449e0afa9dde44dd079ad6047a769c51 |
|
BLAKE2b-256 | 287ed610a9c897e3b9f13ce116ffbd5436c90e440d75ac4b173a0f4623162d49 |
Hashes for mattress-0.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 869af8b8a7feffdd833e2a49d9b11862354931ec0c858258d8968548ec874b52 |
|
MD5 | d9ba46aca3a4018667676b4d9bcb22ad |
|
BLAKE2b-256 | 8e104c3f09688b3240c28bd4a3f98cd27fd7cf97733db150083c612c0d4e8067 |
Hashes for mattress-0.0.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cf7c626e2b2f826a27a0acb92c4c5708812ae12103b8fcca069e86c0334409e |
|
MD5 | 98d40b5d53c08a39a5443608d9a9e858 |
|
BLAKE2b-256 | 001699849ff06489d20feecfaebb4dd774819d50081a78f37bea4544413fdeb9 |
Hashes for mattress-0.0.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2900dea9220f9041b930d25c8355f0c5495d1afcedceb0bb939fa6fc1115bd6b |
|
MD5 | b7afdafb1b3c8b98b0d936d1f48ac0b1 |
|
BLAKE2b-256 | fb1079d4ac0703b15fd7aebd15125272d7c30b8417a4f43d97cf84f30bbd694e |
Hashes for mattress-0.0.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 841fd6ca2e6b4caf335103d70f54c1c82ab14b0a2bc9aff579421d3843187958 |
|
MD5 | 0c9cb1d81cf0563fed961ec129027987 |
|
BLAKE2b-256 | 81a2faa01849654c02f2f7805820f411cfe00b95ea56e20b86d3f4fc5a7f76fb |
Hashes for mattress-0.0.2-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d57f5f713b06806e1d43b6d79e3ec722ddd9fcc91d286358b029f3ea0be4d350 |
|
MD5 | e8c192958c877154b953bc0882e57b99 |
|
BLAKE2b-256 | 56721e9b95573559786eabd7f195174b3fe31aa3cbb1418b7c7878943175315a |
Hashes for mattress-0.0.2-cp39-cp39-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3aa401b662d6761acfb382be694d37963674b664fb14b9be64bcc6787d4fa8bb |
|
MD5 | d260c7d91261034f802109dcfd6e0889 |
|
BLAKE2b-256 | c4638175a3fd59472ed2475c466b927f266ef3ef2df9350010a2f0acc61fbe37 |
Hashes for mattress-0.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 863c52e4b509447ef95bde9168ed56646fba0240eb0882eba0461da3546f1ffe |
|
MD5 | 97aee598ea67769ea2a04dd5fa6533c8 |
|
BLAKE2b-256 | f93856fe9a807f843979a0c63d45f6b416c0678f31a5294487b0615b75ce3632 |
Hashes for mattress-0.0.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53320459d9b194bbdd09394483a04141527b505a094b0f0b25cc8c2a32e96f6d |
|
MD5 | 4c2be1b7a49aed1ddee94bcef00849d6 |
|
BLAKE2b-256 | ff52da2a8b746ccd15f7038e2d1852ffb9e19c5bf499f79436c0d19d4eac755f |
Hashes for mattress-0.0.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b0db768bb5150a2571c50916c98ec0e99599a1a618096f973a9fe03ab0d2be3 |
|
MD5 | 740b3359b480939f2bc947bd7afdb983 |
|
BLAKE2b-256 | 0ce45cdad09ea9e41c9f5f85114af8e1ad7ad0a40624c8f5b0176e86be560f9c |
Hashes for mattress-0.0.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d80f691d47a4b7c88836e5094725efe5ca9a6b152e4d69096af62010eb1c2b44 |
|
MD5 | 42e30697741e6b980b9d9584668c76e5 |
|
BLAKE2b-256 | 408d43c1fc17c483a70834af842c26ba82f733854bce9bed6b12c086082622d8 |
Hashes for mattress-0.0.2-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4febcdfc00ca16c81cf3fa71c993c010b6542f88b67db7e074653a4660faa8b0 |
|
MD5 | 13f4d3a687dfacd59ea52a3798fdd7b0 |
|
BLAKE2b-256 | 51fb274921a1839a3d4ff65d147e8cbb0c1b737864a2c7dba9bc706ff8171a86 |
Hashes for mattress-0.0.2-cp38-cp38-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5d491c30ce9439ea9ff363b5e402d7321a6f3b3ab33c8cddc8ba55c28dd868f |
|
MD5 | d325d51fc5d2c819b5bb42cbcc4046f7 |
|
BLAKE2b-256 | 7653c25b3bee37a62de265c83052d7be43e382eba3b07d8b169502a7273374fc |
Hashes for mattress-0.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa40fe001075c64668205804661e019d70b940a9353fada4ce807a588c754b69 |
|
MD5 | af6a554bac59ffd5855c04a296277f8a |
|
BLAKE2b-256 | fa9649694b72ac3b9a3f91a35446e7c3ca1d1be86358afc3fc47d66106cc6364 |
Hashes for mattress-0.0.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d139a386081e72451a274300abcf4268a0264872af41ca7b08d3d3d66a555f97 |
|
MD5 | 22d3277300db141a9f077cef82f0585a |
|
BLAKE2b-256 | ef388b67e6fd37e4839a65304c32098a5b609bcfc324da329d4314b5c7610f0d |
Hashes for mattress-0.0.2-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9090aa839b580f0eeea5d5dc074822a2242d6a044d92ce45e183da7e151aaeca |
|
MD5 | 0a1f40ae5aabf257a99ac4798aae99ce |
|
BLAKE2b-256 | 0fd7b9b7becfe87ec7221376a17795240118d49dbbe8a692c4a63e8535652a0b |
Hashes for mattress-0.0.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b741cd674c8715754334fb836622afec9db788fe20e92e384b955d4e46f4b2a |
|
MD5 | 9aefaf514bb6a0c59528245484470775 |
|
BLAKE2b-256 | 22787ff71868e2f97b6d838d3d3e86ae9cd969275c76bbc74c37f6bf2ff62564 |
Hashes for mattress-0.0.2-cp37-cp37m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98ab598315eb6c8a38959c0c67dfedd102e82510eefd145f6010c64ad0a51936 |
|
MD5 | c9c28ec46793a26bbc8c6859ede18824 |
|
BLAKE2b-256 | 2fded68ac7a6139cf6e234ad6a90e2134eb6a54acb66a2813e206f7f724e3824 |
Hashes for mattress-0.0.2-cp37-cp37m-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95af602ea327fe5e8316c0ec73af929df2e22210ff442986db07b1e00a297ccc |
|
MD5 | 56e843c78c4aa3f2a3c09186c062a7e8 |
|
BLAKE2b-256 | 758d91635e78c4e4d684db61b1abf81ceff6a5fc86bb680e1ee66f730b4ec1f9 |
Hashes for mattress-0.0.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48939f37fcdeb8178edbb7179769f0f8376286bb12b73a63a689d7b68c74b1f7 |
|
MD5 | 83362d1137eca13e56382aee4e180ca0 |
|
BLAKE2b-256 | 5a8e85eb8107edb765bad8ecf75fbceb5760c50916e15d3ba4d489f7936053cc |
Hashes for mattress-0.0.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de64c9dd8674a23c39ca8c6e29d1c11db820782b93e269ae27341d0320af2d76 |
|
MD5 | f5fc2f43c6d50aafe51c2b2aabf80d50 |
|
BLAKE2b-256 | 22dc9a91c991b26727099aa5df5436cebb5d5e6b43b818efbce50fd67fe8efbb |
Hashes for mattress-0.0.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88dba1b306fbe67f48f3a3fe09c4848d4498c33c7d506da42a5bd21cfb5d2d3c |
|
MD5 | 9eda9ec14d989035250bcbb3e91fbd8a |
|
BLAKE2b-256 | 83264935e6f7d6bb1366e772859ea9921824053eda2137f7c0280cb6b10067c4 |
Hashes for mattress-0.0.2-cp36-cp36m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1ba8b35c7c83f1555daec004ab214b1aeab2c69c1af06badbc245db17656eed |
|
MD5 | c6ba8502c3c9899793dff8adec0fe143 |
|
BLAKE2b-256 | 737e64b1b2b0e7a3fb54096d357273aac252c4900354dc2e070d736c581b7e1b |
Hashes for mattress-0.0.2-cp36-cp36m-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fd8f72080c235f53b55830da41a2ce9ea0d16cf5e351576c7aa2d5d77c2d03a |
|
MD5 | ce66459bc5bd13150623b8bdf77aabe1 |
|
BLAKE2b-256 | 8afae47f87d9053764053737875f3dcb1deac08825423bfb9cbf0b1b28dad259 |
Hashes for mattress-0.0.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81852d221d4944d245a949a224a1216f2d1b59c521a592d718f0aa64a065da78 |
|
MD5 | 8f9325a36e294523dbb814c9b253a0f9 |
|
BLAKE2b-256 | f86bc50b66fc85bfccf1ad438b16317a0c1b96cd4dc977a76bc0afd1d2ffb8ef |
Hashes for mattress-0.0.2-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eac75b899fada52ccff523a093f8b48637e0f6c1bee3ab91e9599dd3e43df8c2 |
|
MD5 | 968a7fb20047f50adaec73f7d3b12d0e |
|
BLAKE2b-256 | 894968de08c273a6e51530be304a05230d84b74f7e464bda977f5f1d47d286e8 |
Hashes for mattress-0.0.2-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1255edcc05819761433002d049cc8c7ce5a88e5c52fa17048ccbcd18846ae191 |
|
MD5 | afa0ed08af4a4460419ed76d0e9a8056 |
|
BLAKE2b-256 | 4b59a14150278ceb5d375de30d68b3963db5253334609ec390898c84831ef57f |