Utility for checking n-dim array shapes using Einstein notation.
Project description
assertshape
Python library for asserting n-dim array shapes using Einstein notations.
Examples:
from assertshape import assertshape
assertshape("nmk,mkn", [(1,2,3), (2,3,1)])
assertshape("nmk,m_n", [(1,2,3), (2,42,1)])
assertshape("nmk,mkn...", [(1,2,3), (2,3,1,4,5,6)])
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
assertshape-0.0.1.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for assertshape-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bd87aaca72a0281c8f7008a3f1284de3b0d8976eb22268d9b7c624bfbf916c1 |
|
MD5 | 006892511b7364d6b83ebf27af016700 |
|
BLAKE2b-256 | c110070bfa2d6efc50c4702a9e81d72e4a8c41d7cb4fd461453d3015a0a438f6 |