diff options
author | Stephan Hoyer <shoyer@gmail.com> | 2016-10-17 21:32:40 -0400 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2016-10-17 21:32:40 -0400 |
commit | 0a02bb6f62a5c09103cf748bafe7a622f3dfe98b (patch) | |
tree | 04ccebede3afc55afd08eae732a3ececa3846f69 /numpy/core/setup_common.py | |
parent | 15e82e2181d9ae92b6a1a6fb80454bc3a4aa2cb5 (diff) | |
download | numpy-0a02bb6f62a5c09103cf748bafe7a622f3dfe98b.tar.gz |
ENH: add signature argument to vectorize for vectorizing like generalized ufuncs (#8054)
* ENH: add signature argument to vectorize for generalized ufuncs
Example usage (from the docstring):
Vectorized convolution:
>>> convolve = np.vectorize(np.convolve, signature='(n),(m)->(k)')
>>> convolve(np.eye(4), [1, 2, 1])
array([[ 1., 2., 1., 0., 0., 0.],
[ 0., 1., 2., 1., 0., 0.],
[ 0., 0., 1., 2., 1., 0.],
[ 0., 0., 0., 1., 2., 1.]])
* Use str.format rather than %
* Fix spelling typo
* BUG: fix np.vectorize for size 0 inputs
* DOC: add vectorize to 1.12.0 release notes
* [ci-skip] Remove outdated comment
Diffstat (limited to 'numpy/core/setup_common.py')
0 files changed, 0 insertions, 0 deletions