Commit 0c9ebf9d authored by Christoph Groth's avatar Christoph Groth

README: Add note about tuple equivalence

parent 2ce6dbd6
Pipeline #43950 passed with stages
in 6 minutes and 58 seconds
......@@ -12,7 +12,9 @@ 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.
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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment