diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2014-08-16 11:53:02 -0600 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-09-04 21:45:48 +0200 |
commit | 41396c415529a0d862fa292c3e46a6f3d660a1a6 (patch) | |
tree | bcfedb1d7b2d00e5acb28eb3665b3dd0e66598bf /numpy/core/numeric.py | |
parent | a3919717c47070bc8a245ffa61b3a75dd7d5d879 (diff) | |
download | numpy-41396c415529a0d862fa292c3e46a6f3d660a1a6.tar.gz |
ENH: Move dotblas_matrixproduct down into multiarray.
Move the dotblas_matrixproduct function from the _dotblas.c file to a
new cblasfuncs.c file in multiarray and rename it cblas_matrixproduct.
Modify it so that it can called directly from PyArray_MatrixProduct2 and
do so. Fix up numeric.py and core/__init__.py to reflect these changes.
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index 4361ba5c1..af53ac417 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -1080,15 +1080,14 @@ envbak = os.environ.copy() try: # disables openblas affinity setting of the main thread that limits # python threads or processes to one core - if 'OPENBLAS_MAIN_FREE' not in os.environ: - os.environ['OPENBLAS_MAIN_FREE'] = '1' - if 'GOTOBLAS_MAIN_FREE' not in os.environ: - os.environ['GOTOBLAS_MAIN_FREE'] = '1' - from ._dotblas import dot, vdot, inner + if 'openblas_main_free' not in os.environ: + os.environ['openblas_main_free'] = '1' + if 'gotoblas_main_free' not in os.environ: + os.environ['gotoblas_main_free'] = '1' + from ._dotblas import vdot, inner except ImportError: # docstrings are in add_newdocs.py inner = multiarray.inner - dot = multiarray.dot def vdot(a, b): return dot(asarray(a).ravel().conj(), asarray(b).ravel()) finally: @@ -1096,6 +1095,7 @@ finally: os.environ.update(envbak) del envbak +dot = multiarray.dot def alterdot(): warnings.warn("alterdot no longer does anything.", DeprecationWarning) |