summaryrefslogtreecommitdiff
path: root/numpy/lib/mixins.py
Commit message (Collapse)AuthorAgeFilesLines
* [MAINT] Cleanup python2 sys.version checksSeth Troisi2020-01-201-5/+1
|
* MAINT: Remove implicit inheritance from object class (#15236)Jon Dufresne2020-01-051-1/+1
| | | | | | | Inheriting from object was necessary for Python 2 compatibility to use new-style classes. In Python 3, this is unnecessary as there are no old-style classes. Dropping the object is more idiomatic Python.
* 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.
* MAINT: fix issue with `np.lib.mixins.__all__` and import of mixinsRalf Gommers2019-09-191-2/+2
|
* ENH: implement matmul on NDArrayOperatorsMixin (#12488)Stephan Hoyer2018-12-051-3/+2
| | | | | | * ENH: implement matmul on NDArrayOperatorsMixin * MAINT: remove unnecessary pytest import
* DOC: clear up warnings, fix matplotlib plotmattip2018-04-171-2/+2
|
* DOC: add versionadded for NDArrayOperatorsMixin.Stephan Hoyer2018-03-041-0/+2
|
* ENH: add divmod support to NDArrayOperatorsMixinStephan Hoyer2017-05-071-3/+5
|
* ENH: add __pos__ to NDArrayOperatorsMixinStephan Hoyer2017-04-301-2/+3
|
* MAINT: Set the __name__ of generated methodsEric Wieser2017-04-271-30/+37
| | | | Barely useful, but means that the function name is helpful if printed.
* ENH: NDArrayOperatorsMixin calls ufuncs directly, like ndarrayStephan Hoyer2017-04-271-30/+29
| | | | | | | | | * ENH: NDArrayOperatorsMixin calls ufuncs directly, like ndarray Per our discussion in https://github.com/numpy/numpy/pull/8247#discussion_r112825050 * add back in accidentally dropped __repr__
* BUG: Fix ArrayLike(NDArrayOperatorsMixin) operations with object()Stephan Hoyer2017-04-271-6/+11
|
* ENH: Add NDArrayOperatorsMixin mixin class.Stephan Hoyer2017-04-271-0/+167
This mixin class provides an easy way to implement arithmetic operators that defer to __array_ufunc__ like numpy.ndarray in non-ndarray subclasses.