summaryrefslogtreecommitdiff
path: root/doc/source/reference/arrays.classes.rst
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #23240 from byrdie/bugfix/ufunc_where_propagationSebastian Berg2023-03-221-2/+3
|\ | | | | ENH: Allow ``where`` argument to override ``__array_ufunc__``
| * ENH: Modified `PyUFunc_CheckOverride` to allow the `where` argument to ↵Roy Smart2023-02-241-2/+3
| | | | | | | | override `__array_ufunc__`.
* | MAINT: remove `NUMPY_EXPERIMENTAL_ARRAY_FUNCTION` env varRalf Gommers2023-03-121-9/+0
|/ | | | | | | | As discussed in https://mail.python.org/archives/list/numpy-discussion@python.org/thread/UKZJACAP5FUG7KP2AQDPE4P5ADNWLOHZ/ This flag was always meant to be temporary, and cleaning it up is long overdue.
* Merge pull request #20185 from melissawm/add-interop-docMatti Picus2022-02-021-0/+1
|\ | | | | DOC: Added explanation document on interoperability
| * Addressing review commentsmelissawm2021-11-221-0/+1
| |
* | DOC: remove explicit imports in rst filesPierre de Buyl2021-12-081-1/+0
|/ | | | Add conftest.py and pytest.ini files in doc directory
* DOC: Discussion on the @ operator and the matrix classmelissawm2021-02-051-0/+2
|
* DOC: Tidy up references to str_ / bytes_Eric Wieser2020-10-241-4/+4
| | | | | | | | This: * Fixes some broken references * Cleans up some use of Python 2 aliases: * Switches references to `np.string_` to describe `np.bytes_` instead * Switches references to `np.unicode_` to describe `np.str_` instead
* DOC: Fixes for 18 broken links (#16472)bjnath2020-06-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DOC: Fixes for 18 broken links This, with PR #16465, should fix nearly all the remaining broken links on the site. 4 or 5 others should be easy to fix and just need attention from someone more knowledgeable -- will open an issue. For release notes with dead links, I could usually find links on archive.org for roughly contemporary versions. * DOC: Update to "Fixes for 18 broken links #16472" * Obsolete links, previously commented out, now deleted: https://github.com/numpy/numpy/pull/16472#discussion_r433928958 * Semantic markup for reference to Python class: https://github.com/numpy/numpy/pull/16472#discussion_r433553928 * Missing :ref: in internal link: https://github.com/numpy/numpy/pull/16472#discussion_r433554484 Not included: Resolution on using external/internal doc link in .py: https://github.com/numpy/numpy/pull/16472#discussion_r433554824 * DOC: Add internal link for 'Fixes for 18 broken links' PR #16472 Making reference [1] an internal link in function_base.py => numpy.vectorize.html * DOC: Redirect 2 link fixes in PR #16472 * governance.rst link reverted * ununcs.rst `overridden` link goes where it was meant to per https://github.com/numpy/numpy/pull/16472#pullrequestreview-424666070
* DOC: Correct documentation of ``__array__`` when used as output array. (#16130)Tina Oberoi2020-05-211-3/+2
|
* update doctests, small bugs and changes of reprPierre de Buyl2020-02-061-21/+27
| | | | | | | | | | Fix missing np prefix. Fix missing definitions. Use print function instead of the statement. Add seed to make output repeatable.
* DOC: convert `None` to bare None or ``None``mattip2019-10-151-4/+4
|
* DOC: fix build failuremattip2019-10-151-3/+3
|
* Merge pull request #14064 from kritisingh1/buildSebastian Berg2019-07-231-1/+1
|\ | | | | DOC: Resolve bad references in Sphinx warnings
| * [DOC] Resolve bad references in Sphinx warningskritisingh12019-07-231-1/+1
| |
* | Copy editingDan Allan2019-07-141-3/+3
| |
* | Restore old intro, add note at top.Dan Allan2019-07-141-4/+18
| |
* | Add new section of custom array containers.Dan Allan2019-07-131-15/+4
| |
* | rephraseDan Allan2019-07-131-2/+6
| |
* | Add __array_function__ to user reference.Dan Allan2019-07-131-0/+115
|/
* DOC: Remove explicit .next method calls with built-in nextMSeifert042019-07-071-1/+1
| | | | | | | | In some cases the documentation examples failed with an AttributeError because the next method was not there. In a few other cases it still worked but may be more future-proof and ideomatic if they used the next function instead of the next method.
* DOC: remove note about `__array_ufunc__` being provisional for 1.17.0Ralf Gommers2019-06-261-4/+0
| | | | | Other libraries are relying on this now, and the protocol has been stable since 1.13.0
* DOC: advise against use of matrix.Marten van Kerkwijk2018-04-251-0/+7
|
* DOC: update docs for __array_ufunc__ = NoneStephan Hoyer2017-04-301-10/+6
|
* DOC: clarify recommendations for subclasses, deprecations.Marten van Kerkwijk2017-04-271-12/+19
|
* ENH: Add NDArrayOperatorsMixin mixin class.Stephan Hoyer2017-04-271-2/+2
| | | | | | This mixin class provides an easy way to implement arithmetic operators that defer to __array_ufunc__ like numpy.ndarray in non-ndarray subclasses.
* REVERT: remove __array_ufunc__ override for np.matmul.Marten van Kerkwijk2017-04-271-7/+8
|
* REVERT: remove __array_ufunc__ override for np.dot and ndarray.dot.Marten van Kerkwijk2017-04-271-5/+6
|
* DOC: remove left-over piece discussing binopsMarten van Kerkwijk2017-04-271-11/+0
| | | | The text had been changed following the suggestion of @njsmith, but somehow I had forgotten to delete the original.
* DOC: clarify use of super and getattrMarten van Kerkwijk2017-04-271-22/+62
|
* DOC: Describe __array_func__ in subclassingMarten van Kerkwijk2017-04-271-9/+25
| | | | | This includes the use of super everywhere, and in the brief description of __array_ufunc__ in the reference section.
* DOC: Style and sphinx fixes for arrays.classes.rst.Charles Harris2017-04-271-15/+15
|
* DOC: describe current implementation of __array_ufunc__.Marten van Kerkwijk2017-04-271-48/+50
|
* ENH: Remove position arg from __array_ufunc__.Charles Harris2017-04-271-2/+1
| | | | | | Previously when __array_ufunc__ for one of the ufunc arguments was called, that arguments position was passed in the call. This PR removes that argument as proposed in gh-5986.
* ENH: Rename __numpy_ufunc__ to __array_ufunc__.Charles Harris2017-04-271-11/+11
| | | | | | | | The first commit in changing __numpy_ufunc__ by removing the index argument and making the out argument value always a tuple. These changes were proposed in gh-5986 and have been accepted. Renaming before further changes avoids triggering tests in scipy and astropy while keeping the numpy tests working.
* change all non-code instances of Numpy to NumPyPierre de Buyl2016-09-061-3/+3
| | | | | | | | | Instances remain for NumpyVersion and Numpy.rec.fromarrays that are references to code. Release notes were left unchanged. see issue #7986
* DOC: fix method signatures in "array subclasses"Matthias Geier2015-12-111-6/+6
| | | | | | * Change ".. function::" -> ".. method::" * Remove "self" argument * Change "self" to "obj" in __array_finalize__
* DOC: fixed typo in arrays.classes.rstJaime Fernandez2015-10-191-3/+3
|
* DOC: Remove a reference to __array_priority__.Charles Harris2015-07-011-2/+2
| | | | Also correct its documented default value.
* DOC: improve record/structured array nomenclature & guideAllan Haldane2015-01-221-1/+1
| | | | | | | | | | | This update adds a section better describing record arrays in the user guide (numpy/doc/structured_arrays.py). It also corrects nomenclature, such that "structured array" refers to ndarrays with structured dtype, "record array" refers to modified ndarrays as created by np.rec.array, and "recarray" refers to ndarrays viewed as np.recarray. See the note at the end of the structured array user guide.
* DOC/MAINT: Python 2.6 or 3.2 requiredLars Buitinck2014-09-251-7/+0
| | | | | | | | | Installation docs still stated Python 2.4 is supported, while not mentioning 3.x at all. Also corrected the statement that distutils is in python-dev on Debian, while it's actually in the main package. Several parts of the dev docs and some comments also referenced now-irrelevant 2.5 bugs/limitations.
* DOC: Correct versionadded for __numpy_ufunc__ documentation.Charles Harris2014-09-101-1/+1
| | | | Make it 1.10.
* BUG: core: ensure __r*__ has precedence over __numpy_ufunc__Pauli Virtanen2013-10-191-0/+29
| | | | | | | | | | | | | Add a special case to the implementation of ndarray.__mul__ et al. that refuses to work on other objects that are not ndarray subclasses and implement both __numpy_ufunc__ and __r*__. This way, execution passes first to the custom __r*__ method, which makes it possible to have e.g. __mul__ and np.multiply do different things. Additionally, disable one __array_priority__ special case handling when also __numpy_ufunc__ is defined.
* DOC: improve __numpy_ufunc__ documentationPauli Virtanen2013-09-151-13/+24
| | | | | Cross-reference it from Ufunc documentation and mention the version it was added.
* DOC: Add NEP and documentation for ufunc overrides.Blake Griffith2013-08-311-0/+34
|
* 2to3: Replace xrange by range and use list(range(...)) where neededCharles Harris2013-03-271-1/+1
| | | | | | | | | | | | | | | In python3 range is an iterator and `xrange` has been removed. This has two consequence for code: 1) Where a list is needed `list(range(...))` must be used. 2) `xrange` must be replaced by `range` Both of these changes also work in python2 and this patch makes both. There are three places fixed that do not need it, but I left them in so that the result would be `xrange` clean. Closes #3092
* DOC: BUG: correct description of ndarray iterator. Closes #1687.rgommers2010-11-281-1/+1
|
* updated documentation from pydoc website (thanks to everyone who contributed!)Jarrod Millman2010-02-171-37/+40
|
* second set of checkins from doc editorJarrod Millman2009-11-131-4/+4
|
* Many improvements to chararray. Fixes Trac bugs 1199, 856, 855, 1231, 1235, ↵mdroe2009-10-121-5/+6
| | | | 1240, 1241. docstrings, full unit-test coverage, C-based vectorized string operations.