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.3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3125c3f71821539fe66c1e86a6a64c6f0ccc6f8075d033f5e46e0633280a980b |
|
MD5 | b6e105301ca1dd3da5fcd3ff7db0a916 |
|
BLAKE2b-256 | 0cb441999fa13174e982d41186a2ad96f3367f75033a8ebb4475efd955236a36 |
Hashes for mattress-0.0.3-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dee7ac1fff1cb9cb92f0fe2b9379a0c44db31dafc356c27f1de55664b3fa422 |
|
MD5 | 82935fd01cee6a6ac197425a12670b50 |
|
BLAKE2b-256 | 66f9c81e006f853f666518fa5be9b479c793f66dc27fc87c74a0dc856747ac0b |
Hashes for mattress-0.0.3-pp39-pypy39_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce3cdc55648046efe3e3749a85c9adf107dcebeeecb567db2a7e4e5d8d570af8 |
|
MD5 | c735d10352311f48c5cd85cbf112b7ed |
|
BLAKE2b-256 | c91aab1b1ccba40eaa56b2ca64e400f027d4551ff3b4d4c99e2e85fab74e9c38 |
Hashes for mattress-0.0.3-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bb58b6a7486f93402e5334696b0bb8efd7c6e205a8e868faac9ff42f6b3ddbf |
|
MD5 | a0ec197344835ee73cb8b2c418f012d4 |
|
BLAKE2b-256 | e16ef5e9255cdd35240bab658e4ae8be882ada88c5c4c6ab10964cf56bf8aa9a |
Hashes for mattress-0.0.3-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91638aeb114a232a78d692436fad535fdfcf0bc9110e55c64f6d1b28d443cf78 |
|
MD5 | ef47ff54eb5fa88438d1df1811ff7eaa |
|
BLAKE2b-256 | ba05226caf5df7cd873ab08c87c62024951a259d0bfbc95f671adfdc4c815cc3 |
Hashes for mattress-0.0.3-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b2b3d379e6062aa542efdea834c72605d8832f71f4edfe1ceb876aca9095137 |
|
MD5 | 1901f7df83513a7ccd622a8f4fb37bb8 |
|
BLAKE2b-256 | a4b11a2a03776b95103b382116ec1e1b6a966678023269117c88420a48ce3893 |
Hashes for mattress-0.0.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba0b561624298d97456a62b738552abf6d299d5f03e3d9f3fac71c766d8d8af6 |
|
MD5 | 3d8f1af4a81aa90cf3e7e8ebbaea6207 |
|
BLAKE2b-256 | 43a3bcd6cd198e47f4b3ce0fffac053ca480c2d1693e196f1c580c56f3cf3c4c |
Hashes for mattress-0.0.3-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a128396fc72b1734c4fa3028e676091d0e56829b4b456076ed2c153f1661c59f |
|
MD5 | 5e72139104a3d295ded19143e87ee462 |
|
BLAKE2b-256 | 6027b0c9bd3a896ff14364afcfac747f1bb12a33f342ce41622ca9e33aa9b895 |
Hashes for mattress-0.0.3-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf66a49a494773a2e831cbf107316491f41562732e44b9f92f7661798a97d894 |
|
MD5 | 8aa94479e7c1a01f40cf0405d521e949 |
|
BLAKE2b-256 | 4e9469e98006f7c6696c1641ee52ec6da74c7c77ab4cf029a6831fdeb073a2ec |
Hashes for mattress-0.0.3-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 101ad4f8a6271d07b16d7164d53f85618ab66ea2cf91934c5fa50386cd6ff895 |
|
MD5 | 676e27c74b0c2b7475c6905e1658714d |
|
BLAKE2b-256 | c9f3e4e2110f4014439e905d17b9128aa66101de6081a5aee7e4e2e14184332a |
Hashes for mattress-0.0.3-cp311-cp311-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a0fa06f22ec3c6339a3aaeaf0b1c517fd45123594d3f4bed03d29019c0f54a6 |
|
MD5 | f5c4d3b71948b83dfaad76972080d9e4 |
|
BLAKE2b-256 | 9a8b7b308cd40d48aefe678d23c4950c2462d89bc44584761d4740590cc0e961 |
Hashes for mattress-0.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b077ef4d5be45b3b0d79cc5c1cd89ea4a0117f68496c177294204ce977125e29 |
|
MD5 | 8a121b3b5159567223cb88381ef0e64a |
|
BLAKE2b-256 | b1e0a77ce5360551abb2a94f9d0647a83f1bfbc1c7c8805ad19764daeae73138 |
Hashes for mattress-0.0.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 043a8c21114ea359f01e5979b062254bf4570ebea7275a975ffc9fe091c93eb1 |
|
MD5 | 75776aa0154f6ecec73e096621046eb9 |
|
BLAKE2b-256 | e9b8e525e9bdb99e5fc1184b2274076ce42ca81785d378eee7178a1cbc96f3a0 |
Hashes for mattress-0.0.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6272e88b0c3529032f19842d8cd9162f9849a074f9ceef7e6ed60624f2adde3 |
|
MD5 | a564efdd7cd79cae7b9c89317255961b |
|
BLAKE2b-256 | db49edbe6a3a757ab6041b5ae1d699fec7d33fb315d32cb2bd09d8359441bd3f |
Hashes for mattress-0.0.3-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ece1185601d16405aad942cb7653282536c25a987ec2a8b149fcd46c10b087f5 |
|
MD5 | 0d06be996f394f2bd75d44dbe317cab4 |
|
BLAKE2b-256 | 3c1bed5187e3dbf331205aea3807e19685f5f6457f75b56de63ba3e96ad1c34a |
Hashes for mattress-0.0.3-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b96f509913dddcdacdd14b53fde4a1b13c706818199dff68d830480b6916bec |
|
MD5 | 5a39053a9c70620cb698d71c8bc177e9 |
|
BLAKE2b-256 | bb476f063cd09495dfa2dff2177fb9986598cfa5d893bff929fbaf245d8f619b |
Hashes for mattress-0.0.3-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | caf4eb53926608b0946d94aa8385c1dc16fd7d8455131e8688dbb09b8b456848 |
|
MD5 | 7ca7108fc43655a25335129448815f5a |
|
BLAKE2b-256 | 809a4bcd891d6a20c6db5d175847f44e061375a9524582ca9744bca4dd219c45 |
Hashes for mattress-0.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63e75460ed5beb4e2fbdaaef616ddfb0500143d8ed0a34807a0ba91c3575ffa8 |
|
MD5 | 1b70668678f8e448513838f467199dc3 |
|
BLAKE2b-256 | 9da298b5f1de1f797ee1cab13d3f8d0be130b9551add5758b7a4c7cb21ff01e5 |
Hashes for mattress-0.0.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 263b5e423ffb7e9b5464768ec82d081ad384990d58ced6b1488ad56cd7ba7cec |
|
MD5 | 5533de057ad3de00aa0c50c942545ed1 |
|
BLAKE2b-256 | 2ac7c51a52b39e1b88cda54658975def065ff4efdee61ccaaffa1cf07f79c0f0 |
Hashes for mattress-0.0.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b2830357fc8f56fa4d1804dcc1fabc66c38c2b46f82e87889278a6762dd243f |
|
MD5 | daa31e8b9f106a293d64ea443c441a72 |
|
BLAKE2b-256 | bea9da98f0a8734d2173fd71c542738ab8e7f75b228c66d429cd05d926f0cc00 |
Hashes for mattress-0.0.3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85e181ea1d8f4395b2686b80f618bf44400e1cd673f358407392952c6384ad7f |
|
MD5 | b7457f0cfa79e744ece2868fb4318fac |
|
BLAKE2b-256 | 16043f370a5a3c21b1559f4d31904d680fe5aa286298934a2089976ee3509d7e |
Hashes for mattress-0.0.3-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0722962f70219ef27cbe527ebd24c177bd1700b19340658b0b1891a9f69eee79 |
|
MD5 | 711c925e53b0fa17271eb71a31a16df0 |
|
BLAKE2b-256 | 6afffe641992a2640e14e7b9f54f74ca992f62d63d06eceb90210133e0a4e6ec |
Hashes for mattress-0.0.3-cp39-cp39-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3edd51d1b6374faf70d8ef85d85fd9518231a3a3da6caab5f4feecda6d3452c |
|
MD5 | 3db4320cefc72ea220a6a2c0db909880 |
|
BLAKE2b-256 | c575b23479e1c13f8fc7e7087368fa02f66776fee341cc26cfb0d010ec26f541 |
Hashes for mattress-0.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76d0bf2c580c6e8f210598540be9887cbede0bfa570d4f884a015c7ae22aa3fd |
|
MD5 | a06f98d5796abc357b81269094334f7b |
|
BLAKE2b-256 | adc4b2319501af2c62c98fa3c1e0ec357884f22c174106cc928af40c4a482cd7 |
Hashes for mattress-0.0.3-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18fe8ee5c66daedd706244db1eea5efb92209191da5e7c1cd9ff8de54155a87d |
|
MD5 | 339814dffa527bdb8ee77e7425bcdd6f |
|
BLAKE2b-256 | 2e89fc4c101f45a516346248622df39f43f7383583903a74875ba3cc2991c121 |
Hashes for mattress-0.0.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f64baeab8ed90e9953b8564371caa013d0f1503110eb51bbbbdd3d35f59b09b2 |
|
MD5 | add6cb9928c7d475227018873bb70fbc |
|
BLAKE2b-256 | c2d224c5cebbb2dbc043102f88dd3395b1ff6056e93c73fb9c02305bc982f635 |
Hashes for mattress-0.0.3-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3b02f57a2b26538a5766a26929ccbdfdc4a3fe9e695457acdeedf3facdae3a8 |
|
MD5 | 5e5fc577a68d11f90a202948b05e1559 |
|
BLAKE2b-256 | 5dc89081224e8671403e76d1c1d102f1fee05ae11caf7ebac62e4ccea0e4da8d |
Hashes for mattress-0.0.3-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0655e29d35b4b21e77222c40e07393b642bf954ed5751f3455db7d0d1393aee0 |
|
MD5 | 5cbb999f96c5dc3e9150966e6b656d09 |
|
BLAKE2b-256 | 8305649bcf86530811e403414aae7fffbaacb6a9b2828ce990e36b3dbe731f87 |
Hashes for mattress-0.0.3-cp38-cp38-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02c711c0e81a304a153663156ad163e6c1caf4053fa4766df46662ce4dc8c729 |
|
MD5 | 0f9a4c0440be054c74eba5d664a9761c |
|
BLAKE2b-256 | 53089adb329fbd5ccf2f9a626c01b83e4df3e0be866778017bdbe00d12a3693f |
Hashes for mattress-0.0.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ddbfd4370a0ba3e55a6b03f221a7cbfd30311261a1263671e827f30e7a94933 |
|
MD5 | 38693ed5b65e424d008dedbe5ebbf765 |
|
BLAKE2b-256 | 935d92958b947c1d7807e5cf8f3a5d107afb5e69e345a3581145cc7b101c1d2e |
Hashes for mattress-0.0.3-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a602be2f715040fee9988183f2b2bf6be09b120bb8db88759cfdf1f281e37631 |
|
MD5 | 625e4e1fdb751581e0ea33613532a90f |
|
BLAKE2b-256 | 17213e1b7ed2807b1ec80f56d450a3c82256066a3e68332701211aec933e0a5b |
Hashes for mattress-0.0.3-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e41022443b4c7f82be2564102611cd940f50cc0696c34b2aeb25be0764423a2 |
|
MD5 | 5ec211b0827fb11d3dddfb085a4e4c02 |
|
BLAKE2b-256 | 9fe221396231405a33283962fb2ebd8577fab8c713ede51425b1cd2c32284ccb |
Hashes for mattress-0.0.3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4248e6c8cb8c5be026bec805eb0a3e3f941e0b9465a0d59e1814ae934e4e9cc3 |
|
MD5 | 3bac587be43f34f187b6e7864cafc00c |
|
BLAKE2b-256 | a160e9406cd2c3afdcc773824bac41f785516a72ac7e2df4ee5eb86df52e8f0d |
Hashes for mattress-0.0.3-cp37-cp37m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c508ce733fc4e5ef832908340fd918773b3c459cc672e2ae99a0b9954efe480e |
|
MD5 | e2a5c99024f9e949aa6de420ae532c33 |
|
BLAKE2b-256 | e6afe36acffea33ac5846b78857dbc3913ebe12f7cce47b73e82182e7c67ebea |
Hashes for mattress-0.0.3-cp37-cp37m-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ce479590bc42b5f80680e3f5100aa76e02b71c32927a34173df4c5345b825c2 |
|
MD5 | 0b7c0cc769b432061754f5dd6afc412e |
|
BLAKE2b-256 | 5899f0602c68129064f2e5a7c32e6b0e8169c7c4c3b179de3fd42177c1d123c9 |
Hashes for mattress-0.0.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63e2968422465a99d05b8fde703b32d95627a95eea7465814103949b08bce933 |
|
MD5 | af9ef03a3b75332b6ba0d160bf99cb13 |
|
BLAKE2b-256 | 432013e1a643cf3b755f6dbd0fc013786dd89fce0e4c78067ecde579e0440c94 |
Hashes for mattress-0.0.3-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96f40e8bf15ec8ab811258c3dfe30023a25f70365e77980c90ce7e7446d213a2 |
|
MD5 | 92424efdd630b60dac0a31b999fcea9a |
|
BLAKE2b-256 | 96c2b42ac213bbab3a58401934c4d486213c0a64bfcbc379a95caba0bebb310a |
Hashes for mattress-0.0.3-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4580ced25d0322a8c03d808ce8cb02726f537a3d0970577b082e8711629cd532 |
|
MD5 | ecb317121be9f781a2319a3ec5fac52c |
|
BLAKE2b-256 | 842ac3f6fc072afbd946c3df2e7547c80c226d9d050bd2d3430aa2856414bceb |
Hashes for mattress-0.0.3-cp36-cp36m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b9d2fc125be0ee21bd13de5c61fcea0771cdb5c626256bb5a7077e68f23945e |
|
MD5 | a45145d41333f17f90bd7a4de512b22f |
|
BLAKE2b-256 | e465a0611823e58838cdf48fa293563cefdd15f0bca160e260163289800df594 |
Hashes for mattress-0.0.3-cp36-cp36m-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 532c35fa75553bf4457993a298362d149a28467e1b4d380711632f975ccf88a8 |
|
MD5 | e47255b6a2c64b9b7c8f22e129556163 |
|
BLAKE2b-256 | aa6afaf1e7e5c9c062aa1b2324a1d6f9a755d2dbbde73f048fb5ed5fc92ab06f |
Hashes for mattress-0.0.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2bb71df515131487336e8b11935aeee20ce4505d3d545fb31dd48087df7d299 |
|
MD5 | ded64680908d302b70ca3e58d3a66870 |
|
BLAKE2b-256 | 4f4f2d559e96cc2c37a80cd14b84396c42aa99c83ac2f376be8991680ba06bfe |
Hashes for mattress-0.0.3-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d544114fa92e7ba906eb50498e86fcb74cb0d6e99bbfa2ececfd5c5eac03ff42 |
|
MD5 | a1989de620e22f429377ffca5bc90bf6 |
|
BLAKE2b-256 | 57e7d36964f92ce031b73fe7b3caf0c232ab431e96b4666ee50e83b6708e9aa3 |
Hashes for mattress-0.0.3-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de18488787119498ab8b7d774825c35c85e3ddd2e093953ce9e017f263200690 |
|
MD5 | 177bf47ce8c391558623a3c36a9b5dfb |
|
BLAKE2b-256 | a3ae3f57c6a5c1445b5d3f8dd90fef18bed0ce12b8930c64c12cb6f95bd8468c |