Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
kwant
tinyarray
Commits
0c9ebf9d
Commit
0c9ebf9d
authored
Sep 18, 2020
by
Christoph Groth
Browse files
README: Add note about tuple equivalence
parent
2ce6dbd6
Pipeline
#43950
passed with stages
in 6 minutes and 58 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
README.rst
View file @
0c9ebf9d
...
@@ -12,7 +12,9 @@ enough.)
...
@@ -12,7 +12,9 @@ enough.)
Unlike Python's built-in tuples, Tinyarrays support mathematical
Unlike Python's built-in tuples, Tinyarrays support mathematical
operations like element-wise addition and matrix multiplication. Unlike
operations like element-wise addition and matrix multiplication. Unlike
Numpy arrays, Tinyarrays can be used as dictionary keys because they are
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
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,
familiar to many. Whenever an operation is missing from Tinyarray,
...
...
Christoph Groth
@cwg
mentioned in issue
kwant#359 (closed)
·
Sep 18, 2020
mentioned in issue
kwant#359 (closed)
mentioned in issue kwant#359
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment