Tinyarrays are similar to NumPy arrays, but optimized for small sizes. Common operations on very small arrays are to 3-7 times faster than with NumPy (with NumPy 1.6 it used to be up to 35 times), 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. What is more, tinyarrays are equivalent to tuples with regard to hashing and comparisons: a dictionary or set with tinyarray keys may by transparently indexed by tuples.
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.
Download filesDownload the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution File detailsDetails for the file tinyarray-1.2.5.tar.gz
.
5d47b3d475a30478ee72d6afe238c3d3683b3a3f9d425bb2f6384270b2c8799b
MD5 06cbd64dd59c764482c1c4eba9994434
BLAKE2b-256 2e6d832f83d23029c0f22ad6551b3cd053ab614e014dbda204bc4ee1cf3c6cb5
See more details on using hashes here.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4