[Numpy-svn] [numpy/numpy] c96736: ENH: Add geomspace function
GitHub
noreply at github.com
Tue Jun 21 20:55:11 EDT 2016
Branch: refs/heads/master
Home: https://github.com/numpy/numpy
Commit: c96736198c01861aa8d7ea2b57876648eb999c61
https://github.com/numpy/numpy/commit/c96736198c01861aa8d7ea2b57876648eb999c61
Author: Endolith <endolith at gmail.com>
Date: 2016-06-20 (Mon, 20 Jun 2016)
Changed paths:
M numpy/core/function_base.py
M numpy/core/tests/test_function_base.py
Log Message:
-----------
ENH: Add geomspace function
Like logspace, but specifying start and stop directly, without having to
specify the base.
Purely imaginary or purely negative real sequences are converted to
positive real, computed, and converted back, so there are no negligible
real or imaginary parts. Instead of
array([ 6.12323400e-17 +1.00000000e+00j,
6.12323400e-16 +1.00000000e+01j,
6.12323400e-15 +1.00000000e+02j,
6.12323400e-14 +1.00000000e+03j])
it outputs array([ 0. +1.j, 0. +10.j, 0. +100.j, 0.+1000.j])
If dtype is complex it does the math in complex so it can leave
the real line and follow a spiral.
TST: Added tests for geomspace and more tests for logspace, making
PhysicalQuantities tests work for all types of functions
PEP8: __all__ after imports, line wrapping
Commit: e53570dda20ba7863b1aa225a069a206b9d725e2
https://github.com/numpy/numpy/commit/e53570dda20ba7863b1aa225a069a206b9d725e2
Author: endolith <endolith at gmail.com>
Date: 2016-06-21 (Tue, 21 Jun 2016)
Changed paths:
M doc/release/1.12.0-notes.rst
M doc/source/reference/routines.array-creation.rst
Log Message:
-----------
DOC: Add geomspace to function list, release notes
Commit: 70f50b8cbb1cd09c2dd108abe36ed211b9e0a071
https://github.com/numpy/numpy/commit/70f50b8cbb1cd09c2dd108abe36ed211b9e0a071
Author: Charles Harris <charlesr.harris at gmail.com>
Date: 2016-06-21 (Tue, 21 Jun 2016)
Changed paths:
M doc/release/1.12.0-notes.rst
M doc/source/reference/routines.array-creation.rst
M numpy/core/function_base.py
M numpy/core/tests/test_function_base.py
Log Message:
-----------
Merge pull request #7268 from endolith/geomspace
ENH: add geomspace function
Compare: https://github.com/numpy/numpy/compare/f902cfd0e10f...70f50b8cbb1c
More information about the Numpy-svn
mailing list