diff options
author | Pauli Virtanen <pav@iki.fi> | 2010-04-30 07:06:02 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2010-04-30 07:06:02 +0000 |
commit | 6dc315f8aa7e67f637bcd2beb0c4105ddfcb4a83 (patch) | |
tree | dc381a77caf5913b30df444a1faae8f8d15d4b38 /doc/release/2.0.0-notes.rst | |
parent | bceb9c20700514db5667831ce2878f1660fb071f (diff) | |
download | numpy-6dc315f8aa7e67f637bcd2beb0c4105ddfcb4a83.tar.gz |
ENH: core: add .dot() method to ndarrays; a.dot(b) == np.dot(a, b)
Diffstat (limited to 'doc/release/2.0.0-notes.rst')
-rw-r--r-- | doc/release/2.0.0-notes.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/release/2.0.0-notes.rst b/doc/release/2.0.0-notes.rst index 06e29de6b..ccb596711 100644 --- a/doc/release/2.0.0-notes.rst +++ b/doc/release/2.0.0-notes.rst @@ -35,3 +35,16 @@ turned off in the standard way: >>> import warnings >>> warnings.simplefilter("ignore", np.ComplexWarning) + +Dot method for ndarrays +~~~~~~~~~~~~~~~~~~~~~~~ + +Ndarrays now have the dot product also as a method, which allows writing +chains of matrix products as + + >>> a.dot(b).dot(c) + +instead of the longer alternative + + >>> np.dot(a, np.dot(b, c)) + |