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

Uploaded Python 3

File details

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

File metadata

  • Download URL: multi_dimpy-0.2.2.tar.gz
  • Upload date:
  • Size: 5.6 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.2.tar.gz
Algorithm Hash digest
SHA256 6aac4c7058117bc2bab6bebcbf3cbb5f647bb5ad31e261e250d7b82dbe89443c
MD5 fb4d8dce859bff999dc1e3766e7d9447
BLAKE2b-256 2b9799b4d549d1797e6019fe053455552b3e3a5c3035410d687b1dde32cd5dd8

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: multi_dimpy-0.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bfa315acf46c2bc5aa3773d58c649ba82e2f511ea42bdb7aade607317de68455
MD5 dc79282a05dc8780c27b6dc07c5000e5
BLAKE2b-256 1f18a3d744b65fcc10fdcc4da8f4c8e18cb8705522e4e3cd00b3dc30fcbd6a0a

See more details on using hashes here.

Provenance

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