summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
authorMads Ohm Larsen <mads.ohm@gmail.com>2017-04-19 11:48:17 +0200
committerMads Ohm Larsen <mads.ohm@gmail.com>2017-04-19 19:02:31 +0200
commitf81a7a34dbd4aa95e904e52a4e8ecf61ae301241 (patch)
tree3096f4fc7ec813eba605db2c1bfbc6191eac6104 /numpy/core/numeric.py
parentd2a31903f131d6c83fdf32fd0564c2074e536312 (diff)
downloadnumpy-f81a7a34dbd4aa95e904e52a4e8ecf61ae301241.tar.gz
DEP: Remove alter/restore dot methods
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r--numpy/core/numeric.py58
1 files changed, 1 insertions, 57 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py
index 2c0205175..6b4a93ce0 100644
--- a/numpy/core/numeric.py
+++ b/numpy/core/numeric.py
@@ -53,7 +53,7 @@ __all__ = [
'min_scalar_type', 'result_type', 'asarray', 'asanyarray',
'ascontiguousarray', 'asfortranarray', 'isfortran', 'empty_like',
'zeros_like', 'ones_like', 'correlate', 'convolve', 'inner', 'dot',
- 'outer', 'vdot', 'alterdot', 'restoredot', 'roll',
+ 'outer', 'vdot', 'roll',
'rollaxis', 'moveaxis', 'cross', 'tensordot', 'array2string',
'get_printoptions', 'set_printoptions', 'array_repr', 'array_str',
'set_string_function', 'little_endian', 'require', 'fromiter',
@@ -1154,62 +1154,6 @@ def outer(a, b, out=None):
return multiply(a.ravel()[:, newaxis], b.ravel()[newaxis,:], out)
-def alterdot():
- """
- Change `dot`, `vdot`, and `inner` to use accelerated BLAS functions.
-
- Typically, as a user of NumPy, you do not explicitly call this
- function. If NumPy is built with an accelerated BLAS, this function is
- automatically called when NumPy is imported.
-
- When NumPy is built with an accelerated BLAS like ATLAS, these
- functions are replaced to make use of the faster implementations. The
- faster implementations only affect float32, float64, complex64, and
- complex128 arrays. Furthermore, the BLAS API only includes
- matrix-matrix, matrix-vector, and vector-vector products. Products of
- arrays with larger dimensionalities use the built in functions and are
- not accelerated.
-
- .. note:: Deprecated in NumPy 1.10.0
- The cblas functions have been integrated into the multarray
- module and alterdot now longer does anything. It will be
- removed in NumPy 1.11.0.
-
- See Also
- --------
- restoredot : `restoredot` undoes the effects of `alterdot`.
-
- """
- # 2014-08-13, 1.10
- warnings.warn("alterdot no longer does anything.",
- DeprecationWarning, stacklevel=2)
-
-
-def restoredot():
- """
- Restore `dot`, `vdot`, and `innerproduct` to the default non-BLAS
- implementations.
-
- Typically, the user will only need to call this when troubleshooting
- and installation problem, reproducing the conditions of a build without
- an accelerated BLAS, or when being very careful about benchmarking
- linear algebra operations.
-
- .. note:: Deprecated in NumPy 1.10.0
- The cblas functions have been integrated into the multarray
- module and restoredot now longer does anything. It will be
- removed in NumPy 1.11.0.
-
- See Also
- --------
- alterdot : `restoredot` undoes the effects of `alterdot`.
-
- """
- # 2014-08-13, 1.10
- warnings.warn("restoredot no longer does anything.",
- DeprecationWarning, stacklevel=2)
-
-
def tensordot(a, b, axes=2):
"""
Compute tensor dot product along specified axes for arrays >= 1-D.