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 (see citation below).

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

Contributing

This package is in its very early stages. I'll update this section with more information soon (hopefully), but in the meantime feel free to get acquainted with dimensioned linear algebra, perhaps by perusing Multidimensional Analysis (cited in the Overview), or adding to the Discussion.

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.1.tar.gz (5.5 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.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: multi_dimpy-0.2.1.tar.gz
  • Upload date:
  • Size: 5.5 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.1.tar.gz
Algorithm Hash digest
SHA256 574ef8499bea9bce4458b03c02c94c32b1f0ab557d18ca70f78c6aed4c58bd6c
MD5 4ae4610e70f86746dc8ed960c7fcb22c
BLAKE2b-256 427ca090a34e5d298ee74de547da6fba831d54e211d60630decf16cfa0c638c3

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: multi_dimpy-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bc869fbc401b642ad189c92f25c2d28553f2205ecfd6c3b25e42f25353002bcd
MD5 7f2293d86c286a410d1aa3b065e0c5b4
BLAKE2b-256 f3bbe51fdbbbc84a6ffc5fac9d06c8eaacb28f16c24a639272543c6cfe00a305

See more details on using hashes here.

Provenance

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