Skip to main content

all your matrix representations belong here!

Project description

Project generated with PyScaffold

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mattress-0.0.3.tar.gz (244.2 kB view hashes)

Uploaded Source

Built Distributions

mattress-0.0.3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (398.6 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

mattress-0.0.3-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (397.1 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

mattress-0.0.3-pp39-pypy39_pp73-macosx_10_9_x86_64.whl (349.2 kB view hashes)

Uploaded PyPy macOS 10.9+ x86-64

mattress-0.0.3-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (398.6 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

mattress-0.0.3-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (397.1 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

mattress-0.0.3-pp38-pypy38_pp73-macosx_10_9_x86_64.whl (349.2 kB view hashes)

Uploaded PyPy macOS 10.9+ x86-64

mattress-0.0.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (396.1 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

mattress-0.0.3-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (396.8 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

mattress-0.0.3-pp37-pypy37_pp73-macosx_10_9_x86_64.whl (349.2 kB view hashes)

Uploaded PyPy macOS 10.9+ x86-64

mattress-0.0.3-cp311-cp311-musllinux_1_1_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

mattress-0.0.3-cp311-cp311-musllinux_1_1_i686.whl (1.4 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

mattress-0.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (811.4 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

mattress-0.0.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (785.7 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

mattress-0.0.3-cp311-cp311-macosx_11_0_arm64.whl (355.0 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

mattress-0.0.3-cp311-cp311-macosx_10_9_x86_64.whl (359.5 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

mattress-0.0.3-cp310-cp310-musllinux_1_1_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

mattress-0.0.3-cp310-cp310-musllinux_1_1_i686.whl (1.4 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

mattress-0.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (811.4 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

mattress-0.0.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (785.7 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

mattress-0.0.3-cp310-cp310-macosx_11_0_arm64.whl (355.0 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

mattress-0.0.3-cp310-cp310-macosx_10_9_x86_64.whl (359.5 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

mattress-0.0.3-cp39-cp39-musllinux_1_1_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

mattress-0.0.3-cp39-cp39-musllinux_1_1_i686.whl (1.4 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ i686

mattress-0.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (811.4 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

mattress-0.0.3-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (785.7 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

mattress-0.0.3-cp39-cp39-macosx_11_0_arm64.whl (355.0 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

mattress-0.0.3-cp39-cp39-macosx_10_9_x86_64.whl (359.5 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

mattress-0.0.3-cp38-cp38-musllinux_1_1_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

mattress-0.0.3-cp38-cp38-musllinux_1_1_i686.whl (1.4 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ i686

mattress-0.0.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (811.4 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

mattress-0.0.3-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (785.7 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

mattress-0.0.3-cp38-cp38-macosx_11_0_arm64.whl (355.0 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

mattress-0.0.3-cp38-cp38-macosx_10_9_x86_64.whl (359.5 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

mattress-0.0.3-cp37-cp37m-musllinux_1_1_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ x86-64

mattress-0.0.3-cp37-cp37m-musllinux_1_1_i686.whl (1.4 MB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ i686

mattress-0.0.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (811.4 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

mattress-0.0.3-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (785.7 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

mattress-0.0.3-cp37-cp37m-macosx_10_9_x86_64.whl (359.5 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

mattress-0.0.3-cp36-cp36m-musllinux_1_1_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.1+ x86-64

mattress-0.0.3-cp36-cp36m-musllinux_1_1_i686.whl (1.4 MB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.1+ i686

mattress-0.0.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (814.8 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

mattress-0.0.3-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (787.6 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

mattress-0.0.3-cp36-cp36m-macosx_10_9_x86_64.whl (359.7 kB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

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