summaryrefslogtreecommitdiff
path: root/doc/source/reference/ufuncs.rst
Commit message (Collapse)AuthorAgeFilesLines
* DOC: Typos found by codespellDimitri Papadopoulos2021-09-211-1/+1
|
* DOC: Created fundamentals doc for explanations in `ufunc` reference doc (#19516)Mukulika2021-08-121-438/+129
| | | | | | | | | | * Created fundamentals doc for explanations in ufunc reference doc * Move explanatory material on ufuncs and broadcasting from the reference guide to the ufunc fundamentals and/or broadcasting document in the user guide * Added examples for ufunc method arguments * Reorganized broadcasting duplicate content from ufuncs doc Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
* Merge pull request #18676 from seberg/new-promotion-partial-weak-scalarsCharles Harris2021-05-191-1/+1
|\ | | | | MAINT: Implement new style promotion for `np.result_type`, etc.
| * DOC,TST: Fix documentation and add testsSebastian Berg2021-05-121-1/+1
| |
* | DOC: Updates based on Marten's reviewSebastian Berg2021-05-061-2/+3
| |
* | Update doc/source/reference/ufuncs.rstSebastian Berg2021-05-051-2/+2
| | | | | | Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* | Grammatical fixups for ufuncs refguide.Ross Barnowski2021-05-031-2/+2
| |
* | DOC,API: Fix the documentation.Sebastian Berg2021-05-031-16/+28
|/ | | | | | | | | | | | Also, for now enforce *all* outputs. That is more conservative, and obviously won't work for certain functions in scipy that have multiple outputs of different types, but it seems a bit safer to me right now. Maybe at some point we have an idea of how to "modify" what the `dtype` means. I am not sure how! By allowing the ufunc itself to interpret how to translte it to a `signature`? By giving it a distinct meaning? Yes, this might narrow us down a bit... but...
* DOC: Make inline code example consistent in ufunc referenceAndras Deak2021-03-181-2/+2
|
* DOC: Fix some referencestakanori-pskq2020-10-241-2/+2
|
* DOC: Add ufunc docstring to generated docs.Ross Barnowski2020-07-201-0/+5
| | | | | | | | Adds the ufunc class to the documentation so that it is included in the generated html docs and all links to it work. Slightly modify ufunc docstring to remove unrecognized heading name.
* DOC: describe ufunc copy behavior when input and output overlap (#16826)Neal C2020-07-161-0/+13
| | | | | | | Describing ufunc copy behaviour when input and output overlaps. Closes #16749 Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* 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: Fix typos and cosmetic issuesMartin Michlmayr2020-05-171-1/+1
|
* DOC: correct possible list lengths for `extobj` in ufunc callsJosh Wilson2020-03-221-5/+5
| | | | | | | | | | | | | | | | | | | According to the docs, the list can be of lengths 1, 2, or 3, but only length 3 appears to work: ``` >>> import numpy as np >>> np.sin(1, extobj=[16, 1, lambda: None]) 0.8414709848078965 >>> np.sin(1, extobj=[16, 1]) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: UFUNC_PYVALS must be a length 3 list. >>> np.sin(1, extobj=[16]) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: UFUNC_PYVALS must be a length 3 list. ```
* DOC: Add some missing functions in the list of available ufuncs.hippo912020-01-061-0/+4
| | | | See #15214
* Merge pull request #14718 from eric-wieser/disable-Q_-_m_castingMatti Picus2019-11-251-3/+3
|\ | | | | API: Forbid Q<->m safe casting
| * API: Forbid Q<->m safe castingEric Wieser2019-10-161-3/+3
| | | | | | | | | | | | | | | | That is, uint64 <-> timedelta64. Allowing this casting was weird, because Q<->q is forbidden, yet q and m are both int64. This fixes gh-12927
* | DOC: convert `None` to bare None or ``None``mattip2019-10-151-2/+2
| |
* | DOC: fix output argument referencemattip2019-10-151-1/+1
|/
* DOC: Change the checkmark to 'Y'.Warren Weckesser2019-09-251-28/+27
| | | | | | The Unicode checkmark doesn't necessarily have the same width as the ASCII characters, even when rendered with a fixed-width font, so the casting table can be misaligned when the checkmark is used.
* DOC: Fix code that generates the table in the 'Casting Rules' section.Warren Weckesser2019-09-201-33/+35
|
* DOC: fix default __array_priority__ in ufunc docsIsaac Virshup2019-06-221-1/+1
| | | Changed default value of `__array_priority__` to correct value.
* DOC: Add docstrings for consistency in aliaseskritisingh12019-04-161-0/+1
|
* DOC: fixes from reviewmattip2019-02-281-1/+1
|
* DOC: reduce warnings when building, reword, tweak doc buildingmattip2019-02-281-2/+2
|
* DOC: Describe new axis argument.Marten van Kerkwijk2018-06-071-1/+12
| | | | Both in the general documentation and in the release notes.
* DOC: Clarify C-API for generalized ufuncs.mattip2018-05-281-2/+2
|
* DOC: Describe new keepdims arguments (and axes).Marten van Kerkwijk2018-05-181-0/+12
| | | | | | Both in the general documentation and in the release notes. For the latter, also include a description of ``axes``, which was missing so far.
* DOC: Mention we can return unitinitialized values (#11086)Matti Picus2018-05-151-0/+10
| | | | | | | | | | | | * DOC: mention we can return unitinitialized values * squash and rebase, extend explanation and improve docstring template * MAINT: Spelling fixes for docstrings. [ci skip] * MAINT: Update following feedback.
* DOC: describe axes keyword in ufunc documentation.Marten van Kerkwijk2018-02-271-0/+14
|
* ENH: Add gcd and lcm ufuncsEric Wieser2017-12-121-0/+2
| | | | Fixes #8772
* DOC:: Clarify the two ufunc signature types.Charles Harris2017-11-271-1/+3
| | | | | | The `ufunc.signature` attribute is the generalized ufunc signature, while the optional `signature` parameter in `ufunc.__call__` refers to the loop type. [ci skip].
* MAINT: Fix use of parenthesis. Charles Harris2017-11-271-1/+1
| | | [ci skip]
* DOC: Update ufunc documentation to mention generalized ufuncs.Marten van Kerkwijk2017-11-251-9/+22
| | | | | Also ensure that __array_ufunc__ is referenced in the output type determination.
* DOC: Add isnat/positive ufunc to documentation [skip ci]Michael Seifert2017-06-141-1/+2
|
* DOC: Update ufunc documentation (#9141)Shitian Ni2017-05-191-3/+5
| | | | | | | * DOC: Update ufuncs.rst to mention the option of an axis tuple fixes issue gh-9131. ufuncs.rst now mentions that the axis may be assigned a tuple of int for reduce. Also fixed broken "{op}.reduce" link on the webpage in the same article.
* DOC: update documentation allowing tuple of one in reduce, etc.Marten van Kerkwijk2017-05-171-3/+6
|
* Merge pull request #9026 from eric-wieser/ufunc_docstringsCharles Harris2017-05-091-0/+2
|\ | | | | ENH: Show full PEP 457 argument lists for ufuncs
| * DOC: Refer to main ufunc docs for kwargsEric Wieser2017-05-081-0/+2
| |
* | ENH: Spelling fixesVille Skyttä2017-05-091-1/+1
|/
* ENH: add np.divmod ufuncStephan Hoyer2017-05-071-0/+1
|
* ENH: add np.positive ufunc and use it for ndarray.__pos__Stephan Hoyer2017-04-301-0/+1
| | | | xref GH8932
* DOC: implement many smaller and bigger changes suggested in review.Marten van Kerkwijk2017-04-271-0/+2
|
* DOC: Corrected links for several __array_*__ functionsMichael Seifert2017-03-271-11/+11
|
* Merge pull request #8830 from MSeifert04/missing_whitespace_before_directiveCharles Harris2017-03-241-1/+1
|\ | | | | DOC: added a whitespace so that sphinx directive displays correctly
| * DOC: added a whitespace so that sphinx directive displays correctlyMichael Seifert2017-03-251-1/+1
| |
* | DOC: Add 'heaviside' to the ufunc documentation.Warren Weckesser2017-03-231-0/+1
|/
* change all non-code instances of Numpy to NumPyPierre de Buyl2016-09-061-2/+2
| | | | | | | | | Instances remain for NumpyVersion and Numpy.rec.fromarrays that are references to code. Release notes were left unchanged. see issue #7986
* DOC: Include docstring for cbrt, spacing and fabs in ufuncs-documentation ↵Michael Seifert2016-08-291-0/+4
| | | | [skip ci]