Skip to main content

NumPy-wrapper for dimensioned arrays.

Project description

Overview

PyPI - Version Read the Docs

Everyone knows you can't add apples and oranges.
Most people also know you can't add meters and seconds.
But sometimes people do—accidentally, when it's hidden in code or in matrix computations.

Models and algorithms with dimensional inconsistencies might still yield decent results, but they don't make physical sense, and a change of units results in a change to the output, when units shouldn't make a difference.

Software packages for managing dimensions already exist, but they lack the ability to do dimensioned linear algebra—they mostly just work with scalar values. So as a first go and a proof-of-concept, this package wraps NumPy and tracks physical dimensions of $n$-dimensional arrays using theory developed in the book Multidimensional Analysis (citation below).

Hart, G. W. (1995). Multidimensional Analysis: Algebras and Systems for Science and Engineering. Springer-Verlag.

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

multi_dimpy-0.2.4.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

multi_dimpy-0.2.4-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file multi_dimpy-0.2.4.tar.gz.

File metadata

  • Download URL: multi_dimpy-0.2.4.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for multi_dimpy-0.2.4.tar.gz
Algorithm Hash digest
SHA256 b1df6d53cbfdfffbb5f9fa1a2f3db74777fd318e2393af6d2f700f8b6eeb8486
MD5 d021b979eb1e67287630ea743eb50af5
BLAKE2b-256 13496ee916cd8b388cf3d4f9be37e52217d4ce10066082a95eebea61953ba672

See more details on using hashes here.

Provenance

The following attestation bundles were made for multi_dimpy-0.2.4.tar.gz:

Publisher: publish.yml on schilln/multi-dimpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file multi_dimpy-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: multi_dimpy-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for multi_dimpy-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d153d6a4671351e14435cd7f8fd5bb82d383f03004a2d881bf63d4c95be08eb6
MD5 c101fc4830bee222bfc8daf62afafa23
BLAKE2b-256 b5a516dc9808135900bb932b40892c1bf9d357f31d10c607ef76c446de01bad4

See more details on using hashes here.

Provenance

The following attestation bundles were made for multi_dimpy-0.2.4-py3-none-any.whl:

Publisher: publish.yml on schilln/multi-dimpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page