diff options
author | Matti Picus <matti.picus@gmail.com> | 2019-05-15 22:38:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-15 22:38:32 -0700 |
commit | 8bf8d28fefba9743f7c2c9a7b2fda827c17fefbc (patch) | |
tree | 5e7c1bc6fc0a327a51e686dfaf2f5823ebd0e79f /doc/release | |
parent | d7e1fcbc2cd9e7a1eea5e04d8fee5909b07b8076 (diff) | |
parent | 1be0e6862196ce92f4b8a2257bad2e890c398cc1 (diff) | |
download | numpy-8bf8d28fefba9743f7c2c9a7b2fda827c17fefbc.tar.gz |
Merge pull request #13503 from fruchart/matmul-object
ENH: Support object arrays in matmul
Diffstat (limited to 'doc/release')
-rw-r--r-- | doc/release/1.17.0-notes.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/release/1.17.0-notes.rst b/doc/release/1.17.0-notes.rst index 3f8095440..1d9bb8f1a 100644 --- a/doc/release/1.17.0-notes.rst +++ b/doc/release/1.17.0-notes.rst @@ -289,6 +289,15 @@ methods when called on object arrays, making them compatible with In general, this handles object arrays more gracefully, and avoids floating- point operations if exact arithmetic types are used. +Support of object arrays in ``np.matmul`` +----------------------------------------- +It is now possible to use ``np.matmul`` (or the ``@`` operator) with object arrays. +For instance, it is now possible to do:: + + from fractions import Fraction + a = np.array([[Fraction(1, 2), Fraction(1, 3)], [Fraction(1, 3), Fraction(1, 2)]]) + b = a @ a + Changes ======= |