diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-10-10 15:32:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-10 15:32:54 -0500 |
commit | 2ed08ba2ec29a8ef5fb60fa1a17a3d9366ae6c5d (patch) | |
tree | f6a8f9eaa405b41178d3a2409510f32c17c927e4 /numpy/core/numeric.py | |
parent | 41d2428a277c868a3160489e9ebe1a7bcbbf5fce (diff) | |
parent | 97d2b97bc071f6148a0e7e5b5836d267693b35da (diff) | |
download | numpy-2ed08ba2ec29a8ef5fb60fa1a17a3d9366ae6c5d.tar.gz |
Merge pull request #12011 from pierreglaser/implement-reduce-ex
ENH: implementation of array_reduce_ex
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index 7c9e41299..56ac69424 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -1934,6 +1934,10 @@ def fromfunction(function, shape, **kwargs): return function(*args, **kwargs) +def _frombuffer(buf, dtype, shape, order): + return frombuffer(buf, dtype=dtype).reshape(shape, order=order) + + def isscalar(num): """ Returns True if the type of `num` is a scalar type. |