diff options
author | Matti Picus <matti.picus@gmail.com> | 2018-09-13 23:55:45 -0700 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2018-09-13 23:56:34 -0700 |
commit | fc4a457c56c24aa4269de4845b17bea1110e5747 (patch) | |
tree | 7083655cd62c65f22079e4030b9e253272fa32d3 | |
parent | 036392fb27a4a95f342f263c97ee653199ec24ad (diff) | |
download | numpy-fc4a457c56c24aa4269de4845b17bea1110e5747.tar.gz |
DOC: Adjust the gufunc signature examples
-rw-r--r-- | doc/source/reference/c-api.generalized-ufuncs.rst | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/source/reference/c-api.generalized-ufuncs.rst b/doc/source/reference/c-api.generalized-ufuncs.rst index dd8cf6558..2c631531f 100644 --- a/doc/source/reference/c-api.generalized-ufuncs.rst +++ b/doc/source/reference/c-api.generalized-ufuncs.rst @@ -145,11 +145,15 @@ Here are some examples of signatures: +-------------+------------------------+-----------------------------------+ | add | ``(),()->()`` | | +-------------+------------------------+-----------------------------------+ +| sum1d | ``(i)->()`` | | ++-------------+------------------------+-----------------------------------+ | inner1d | ``(i),(i)->()`` | | +-------------+------------------------+-----------------------------------+ -| sum1d | ``(i)->()`` | | +| matmat | ``(m,n),(n,p)->(m,p)`` | matrix multiplication | ++-------------+------------------------+-----------------------------------+ +| vecmat | ``(n),(n,p)->(p)`` | vector-matrix multiplication | +-------------+------------------------+-----------------------------------+ -| dot2d | ``(m,n),(n,p)->(m,p)`` | matrix multiplication | +| matvec | ``(m,n),(n)->(m)`` | matrix-vector multiplication | +-------------+------------------------+-----------------------------------+ | outer_inner | ``(i,t),(j,t)->(i,j)`` | inner over the last dimension, | | | | outer over the second to last, | |