Skip to main content

NumPy-wrapper for dimensioned arrays.

Project description

Overview

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[^1].

[^1]: 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.3.tar.gz (5.7 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.3-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: multi_dimpy-0.2.3.tar.gz
  • Upload date:
  • Size: 5.7 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.3.tar.gz
Algorithm Hash digest
SHA256 5fca4541ea426844975520bc66e500e0b8149be73454f3d2f654937f82c917cc
MD5 70c6687bc25c95a46e108038479a8654
BLAKE2b-256 d1e95425865680209b7d86692dd09211afbd53560594120ece22a165e3a8d87a

See more details on using hashes here.

Provenance

The following attestation bundles were made for multi_dimpy-0.2.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: multi_dimpy-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 7.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 79df2087f57ce154b5da954d60ae30b9c8acb81d64161782b0b812b97b10c005
MD5 acc15546c381bf042e77c146aca751f0
BLAKE2b-256 3ec7abe6957299eac07857c802fa5eb48a191c8db6301beafa872ec0141147be

See more details on using hashes here.

Provenance

The following attestation bundles were made for multi_dimpy-0.2.3-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