[Numpy-svn] [numpy/numpy] af1e83: ENH: core: Allow user to pass in output array for ...
noreply at github.com
noreply at github.com
Sat Feb 12 12:24:56 EST 2011
Branch: refs/heads/master
Home: https://github.com/numpy/numpy
Commit: af1e833e49dafc6d96b20de90a44633f11450b3f
https://github.com/numpy/numpy/commit/af1e833e49dafc6d96b20de90a44633f11450b3f
Author: Luis Pedro Coelho <lpc at cmu.edu>
Date: 2011-02-12 (Sat, 12 Feb 2011)
Changed paths:
M doc/source/reference/c-api.array.rst
M numpy/add_newdocs.py
M numpy/core/blasdot/_dotblas.c
M numpy/core/code_generators/numpy_api.py
M numpy/core/src/multiarray/multiarraymodule.c
M numpy/core/tests/test_blasdot.py
M numpy/core/tests/test_multiarray.py
Log Message:
-----------
ENH: core: Allow user to pass in output array for dot()
This avoids the memory allocation. It is strict in checking that the
types are correct, but since it is intended as an optimisation, it
should only be used when the user knows what they are doing.
The out parameter is added both to the BLAS and non-BLAS versions of dot().
Tests are included.
More information about the Numpy-svn
mailing list