Skip to main content

Arrays of numbers for Python, optimized for small sizes

Project description

Tinyarrays are similar to NumPy arrays, but optimized for small sizes. Common operations on very small arrays are up to 35 times faster than with NumPy, and 3 times less memory is used to store them. Tinyarrays are useful if you need many small arrays of numbers, and cannot combine them into a few large ones. (The resulting code is still much slower than C, but it may now be fast enough.)

Unlike Python’s built-in tuples, Tinyarrays support mathematical operations like element-wise addition and matrix multiplication. Unlike Numpy arrays, Tinyarrays can be used as dictionary keys because they are hashable and immutable.

The module’s interface is a subset of that of NumPy and thus should be familiar to many. Whenever an operation is missing from Tinyarray, NumPy functions can be used directly with Tinyarrays.

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

tinyarray-1.0.5.tar.gz (28.9 kB view details)

Uploaded Source

File details

Details for the file tinyarray-1.0.5.tar.gz.

File metadata

  • Download URL: tinyarray-1.0.5.tar.gz
  • Upload date:
  • Size: 28.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tinyarray-1.0.5.tar.gz
Algorithm Hash digest
SHA256 116a080a574bdf9684455f30c5eb2c3b4d4bd0dac7793dfa70f1b3801907b012
MD5 0ef161e8b5ae711fe3e1babb8702105e
BLAKE2b-256 272bafc14d4f14e2c0538fb5f0c24011f1f2e8fe1ea6652737fa48f790af2492

See more details on using hashes here.

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