summaryrefslogtreecommitdiff
path: root/numpy/lib/ufunclike.py
Commit message (Collapse)AuthorAgeFilesLines
* DOC: trunc, floor, ceil, rint, fix should all link to each other in see alsoTim Hoffmann2021-03-011-1/+1
|
* MAINT: Fix the dtype mentioned in 2 `np.lib.ufunclike` exceptionsBas van Beek2021-02-091-2/+4
|
* ENH: Fix exception causes in four .py fileskeremh2020-04-241-4/+4
|
* MAINT: Remove unnecessary 'from __future__ import ...' statementsJon Dufresne2020-01-031-2/+0
| | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* DOC: bring the out parameter docstring into line with ufuncs (#15097)Matti Picus2019-12-141-7/+17
|
* MAINT: Fixes tests with __array_function__ disabledStephan Hoyer2019-05-261-5/+17
|
* ENH: __array_function__ updates for NumPy 1.17.0Stephan Hoyer2019-01-221-5/+1
| | | | | | | | | | - Always enable __array_function__ overrides. - Remove special cases for Python 2 compatibility. - Document these changes in 1.17.0-notes.rst. It will be good to see ASV numbers to understand the performance implications of these changes. If need be, we can speed up NumPy functions internally by using non-dispatched functions (with ``.__wrapped__``).
* TST, DOC: enable refguide_checkTyler Reddy2018-12-141-6/+6
| | | | | | | | * ported the refguide_check module from SciPy for usage in NumPy docstring execution/ verification; added the refguide_check run to Azure Mac OS CI * adjusted NumPy docstrings such that refguide_check passes
* MAINT: disable __array_function__ dispatch unless environment variable setStephan Hoyer2018-11-101-1/+5
| | | | | | | | | | | | Per discussion on the mailing list, __array_function__ isn't quite ready to release as part of NumPy 1.16: https://mail.python.org/pipermail/numpy-discussion/2018-November/078949.html We'd like to improve performance a bit, and it will be easier to support introspection on NumPy functions if we support Python 3 only. So for now, you need to set the environment variable ``NUMPY_EXPERIMENTAL_ARRAY_FUNCTION=1`` to enable dispatching.
* MAINT: set preferred __module__ for numpy functionsStephan Hoyer2018-10-231-3/+3
|
* ENH: __array_function__ support for np.lib, part 2/2 (#12119)Stephan Hoyer2018-10-221-2/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ENH: __array_function__ support for np.lib, part 2 xref GH12028 np.lib.npyio through np.lib.ufunclike * Fix failures in numpy/core/tests/test_overrides.py * CLN: handle depreaction in dispatchers for np.lib.ufunclike * CLN: fewer dispatchers in lib.twodim_base * CLN: fewer dispatchers in lib.shape_base * CLN: more dispatcher consolidation * BUG: fix test failure * Use all method instead of function in assert_equal * DOC: indicate n is array_like in scimath.logn * MAINT: updates per review * MAINT: more conservative changes in assert_array_equal * MAINT: add back in comment * MAINT: casting tweaks in assert_array_equal * MAINT: fixes and tests for assert_array_equal on subclasses
* ENH: isposinf and isneginf now also works for values which can not be ↵Joscha Reimer2018-07-301-6/+14
| | | | converted to arrays
* API: isposinf and isneginf now raise TypeError instead of ValueError for ↵Joscha Reimer2018-07-301-4/+4
| | | | complex values
* DOC: numpy.lib.ufunclike: typo fixedJoscha Reimer2018-07-271-2/+2
|
* BUG: isposinf and isneginf now raise an exception for complex valuesJoscha Reimer2018-07-261-3/+13
|
* Revert "BUG: isposinf and isneginf now also work with complex values"Joscha Reimer2018-07-261-17/+2
| | | | This reverts commit 4e2dd4140e2a7220ef645665a7ce6381493d273d.
* BUG: isposinf and isneginf now also work with complex valuesJoscha Reimer2018-07-051-2/+17
|
* ENH: don't show boolean dtype, as it is impliedEric Wieser2017-11-131-2/+2
|
* BUG: Return scalars from ufunclike objectsEric Wieser2017-04-261-17/+10
| | | | | | No need to reinvent the wheel here - the ufunc machinery will handle the out arguments Fixes #8993
* DEP: Deprecate calling the `out` argument `y`Eric Wieser2017-04-261-19/+51
| | | | Fixes gh-8995
* DOC: change Numpy to NumPy in dosctrings and commentsPierre de Buyl2016-09-061-2/+2
| | | | The strings in error messages were left untouched
* 2to3: Apply `print` fixer.Charles Harris2013-04-061-1/+1
| | | | | | | Add `print_function` to all `from __future__ import ...` statements and use the python3 print function syntax everywhere. Closes #3078.
* 2to3: Use absolute imports.Charles Harris2013-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new import `absolute_import` is added the `from __future__ import` statement and The 2to3 `import` fixer is run to make the imports compatible. There are several things that need to be dealt with to make this work. 1) Files meant to be run as scripts run in a different environment than files imported as part of a package, and so changes to those files need to be skipped. The affected script files are: * all setup.py files * numpy/core/code_generators/generate_umath.py * numpy/core/code_generators/generate_numpy_api.py * numpy/core/code_generators/generate_ufunc_api.py 2) Some imported modules are not available as they are created during the build process and consequently 2to3 is unable to handle them correctly. Files that import those modules need a bit of extra work. The affected files are: * core/__init__.py, * core/numeric.py, * core/_internal.py, * core/arrayprint.py, * core/fromnumeric.py, * numpy/__init__.py, * lib/npyio.py, * lib/function_base.py, * fft/fftpack.py, * random/__init__.py Closes #3172
* 2to3: Put `from __future__ import division in every python file.Charles Harris2013-03-011-0/+3
| | | | | | | | This should be harmless, as we already are division clean. However, placement of this import takes some care. In the future a script can be used to append new features without worry, at least until such time as it exceeds a single line. Having that ability will make it easier to deal with absolute imports and printing updates.
* DEP: remove deprecated np.lib.ufunclike.log2 function.rgommers2011-03-111-42/+0
|
* correct a bug in fix() that was introduced in r8293Darren Dale2010-04-181-1/+1
|
* BUG: Use deprecated decorator in testing ufunclike.log2.Charles Harris2010-04-141-1/+2
|
* BUG: Deprecate ufunclike.log2 and take it off the __all__ list. It was shadowingCharles Harris2010-04-131-1/+6
| | | | the ufunc of the same name.
* minor change to ufunclike.fix, one less array to build and make compatibleDarren Dale2010-03-141-2/+2
| | | | with subclasses of ndarray
* fixed a whole bunch of doctestsPaul Ivanov2009-12-281-2/+2
|
* Merge from doc wikiPauli Virtanen2009-06-191-3/+3
|
* Merge from the doc wikiPauli Virtanen2009-03-241-35/+59
|
* docs: remove invalid informationPauli Virtanen2009-03-211-4/+0
|
* Import documentation from doc wiki (part 2, work-in-progress docstrings, but ↵Pauli Virtanen2008-10-281-7/+78
| | | | they are still an improvement)
* reindenting prior to releaseJarrod Millman2008-09-021-2/+2
|
* Revert r5698, r5699, and r5702 until build problems are fixed.Charles Harris2008-08-271-14/+17
| | | | Fix ticket #878 differently.
* Use trunc as fix implementation.David Cournapeau2008-08-251-11/+2
|
* Merge from documentation editor.Stefan van der Walt2008-08-051-6/+71
|
* Fix some bugs with isposinf and isneginf as well as with how allclose dealt ↵Travis Oliphant2007-05-171-0/+2
| | | | with infinities. See ticket #519
* Allow matrices to pass through more functions.Travis Oliphant2007-02-011-3/+3
|
* remove unused importsTim Leslie2006-03-131-1/+1
|
* Run reindent.py (script distributed with Python) over the source to remove ↵cookedm2006-03-101-1/+0
| | | | extraneous whitespace
* More fixes...Travis Oliphant2006-01-041-20/+2
|
* Fixed libTravis Oliphant2006-01-041-2/+2
|
* Moving things..Travis Oliphant2006-01-041-0/+77