Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #23727 from F3eQnxN3RriK/doc-patch-2 | Charles Harris | 2023-05-14 | 1 | -15/+13 |
|\ | | | | | DOC: Rewrite docstrings of `ogrid` and `mgrid` | ||||
| * | DOC: Rewrite docstrings of `ogrid` and `mgrid` | Yuki | 2023-05-06 | 1 | -15/+13 |
| | | | | | | | | Removed references to `nd_grid` instead of adding a document (gh-23612). | ||||
* | | Merge branch 'main' into deprecate-find-common-type | Charles Harris | 2023-05-13 | 1 | -11/+40 |
|\ \ | |/ | |||||
| * | DEP: deprecate `product`, `cumproduct`, `sometrue`, `alltrue` | Ralf Gommers | 2023-03-02 | 1 | -10/+9 |
| | | | | | | | | [skip cirrus] | ||||
| * | Merge branch 'main' into document_diag_indices_from | Ross Barnowski | 2023-01-25 | 1 | -1/+1 |
| |\ | |||||
| | * | MAINT: Move set_module to numpy.core to use without C import | Sebastian Berg | 2022-11-24 | 1 | -1/+1 |
| | | | |||||
| * | | DOC: Fix example spacing and move to end of docstring. | Ross Barnowski | 2023-01-25 | 1 | -11/+11 |
| | | | |||||
| * | | Add examples for diag_indices_from() | Richie Cotton | 2022-11-08 | 1 | -0/+26 |
| |/ | |||||
| * | DOC: Improve how-to-partition contents. | melissawm | 2022-10-11 | 1 | -0/+2 |
| | | | | | | | | Also add links to this document from the functions' docstrings. | ||||
| * | DOC: How to partition domains | melissawm | 2022-10-03 | 1 | -0/+2 |
| | | |||||
* | | ENH: Ensure we will transition to an error for `np.r_[int8_arr, 300]` | Sebastian Berg | 2022-11-08 | 1 | -2/+3 |
| | | | | | | | | That is, once the NEP 50 transition happens | ||||
* | | MAINT: Refactor AxisConcatenator to not use find_common_type | Sebastian Berg | 2022-11-07 | 1 | -15/+16 |
|/ | | | | | | | | | | | | | Rather, use `result_type` instead. There are some exceedingly small theoretical changes, since `result_type` currently uses value-inspection logic. `find_common_type` did not, because it pre-dates the value inspection logic. (I.e. in theory, this switches it to value-based promotion, just to partially undo that in NEP 50; although more changes there.) The only place where it is fathomable to matter is if someone is using `np.c_[uint8_arr, -1]` to append 255 to an unsigned integer array. | ||||
* | Merge pull request #16971 from BvB93/nd_grid | Charles Harris | 2022-06-09 | 1 | -17/+20 |
|\ | | | | | BUG: Fix three `complex`- & `float128`-related issues with `nd_grid` | ||||
| * | BUG: Fixed an issue where `nd_grid` could cast `float128` to `float64` | Bas van Beek | 2021-10-13 | 1 | -17/+20 |
| | | |||||
* | | DOC: Added and modified examples | Mukulika | 2021-11-11 | 1 | -2/+2 |
|/ | | | | Also fixed minor typos and styling errors | ||||
* | MAINT: refactor "for ... in range(len(" statements | Mike Taves | 2021-09-01 | 1 | -9/+9 |
| | |||||
* | MAINT: Remove unused imports and unreachable code (#18762) | Elisha Hollander | 2021-07-07 | 1 | -1/+0 |
| | | | * Remove unnecessary imports and minor fixes | ||||
* | Update numpy/lib/index_tricks.py | Ahmet Can Solak | 2021-06-07 | 1 | -1/+2 |
| | | | Co-authored-by: Matti Picus <matti.picus@gmail.com> | ||||
* | Update numpy/lib/index_tricks.py | Ahmet Can Solak | 2021-06-07 | 1 | -1/+2 |
| | | | Co-authored-by: Matti Picus <matti.picus@gmail.com> | ||||
* | DOC: docstring fix implemented for ndindex class under index_tricks | AhmetCanSolak | 2021-06-07 | 1 | -2/+2 |
| | |||||
* | MAINT: use super() as described by PEP 3135 | Mike Taves | 2021-03-19 | 1 | -2/+2 |
| | |||||
* | added exception chaining in index_tricks.py and mrecords.py | Mainak Debnath | 2021-03-11 | 1 | -8/+18 |
| | |||||
* | DEP: Deprecated ndindex.ndincr | Eric Wieser | 2020-09-03 | 1 | -0/+9 |
| | | | | The "do not use" comment has been here since bb0e4f356cce2f199d9c08ffe572fbabadc846d1. | ||||
* | DOC: update val to be scalar or array like optional closes #16901 (#16907) | Paul | 2020-07-31 | 1 | -3/+5 |
| | | | | | * DOC: update val to be scalar or array like optional closes #16901 Co-authored-by: Ross Barnowski <rossbar@berkeley.edu> | ||||
* | Merge pull request #16815 from cjblocker/mgrid-float | Matti Picus | 2020-07-25 | 1 | -7/+7 |
|\ | | | | | BUG: fix mgrid output for lower precision float inputs | ||||
| * | BUG: fix mgrid output for lower precision float inputs | Cameron Blocker | 2020-07-12 | 1 | -7/+7 |
| | | | | | | | | | | | | Floats besides float64 were being coerced to integers and complex step sizes for the index trick classes would fail for complex64 input. Fixes #16466 | ||||
* | | DOC: fix inconsistent parameter name in np.ndindex docstring | Rohit Sanjay | 2020-07-13 | 1 | -1/+1 |
|/ | |||||
* | DOC: adding docs on passing dimensions as tuple to ndindex (#16806) | Neal C | 2020-07-11 | 1 | -2/+14 |
| | | | | | | * adding documentation on passing dimensions to ndindex as a tuple Co-authored-by: sun <sun@vosdbt.org> | ||||
* | DOC: Minor RST formatting. (#16792) | Matthias Bussonnier | 2020-07-09 | 1 | -2/+2 |
| | | | DOC: fixes to capitalization and header lines | ||||
* | Update numpy/lib/index_tricks.py | Kerem HallaƧ | 2020-04-25 | 1 | -1/+3 |
| | | | Co-Authored-By: Ross Barnowski <rossbar@berkeley.edu> | ||||
* | ENH: Fix exception causes in four .py files | keremh | 2020-04-24 | 1 | -2/+2 |
| | |||||
* | MAINT: Clean-up 'next = __next__' used for Python 2 compatibility | Mike Taves | 2020-04-01 | 1 | -4/+0 |
| | |||||
* | MAINT: Remove implicit inheritance from object class (#15236) | Jon Dufresne | 2020-01-05 | 1 | -5/+5 |
| | | | | | | | 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 ...' statements | Jon Dufresne | 2020-01-03 | 1 | -2/+0 |
| | | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior. | ||||
* | Merge pull request #8641 from eric-wieser/ix_-preserve-type | Matti Picus | 2019-04-29 | 1 | -4/+5 |
|\ | | | | | BUG: Preserve types of empty arrays in ix_ when known | ||||
| * | Merge branch 'master' into ix_-preserve-type | Eric Wieser | 2018-07-31 | 1 | -94/+155 |
| |\ | |||||
| * | | BUG: Preserve types of empty arrays when known | Eric Wieser | 2017-02-19 | 1 | -4/+5 |
| | | | | | | | | | | | | Fixes regression in #5805 | ||||
* | | | DOC: Added anti-diagonal examples to np.diagonal and np.fill_diagonal | Ander Ustarroz | 2019-04-13 | 1 | -3/+20 |
| | | | |||||
* | | | avoid using math. | Matthias Bussonnier | 2019-02-13 | 1 | -1/+1 |
| | | | |||||
* | | | Properly format Return section of ogrid Docstring, | Matthias Bussonnier | 2019-02-13 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | Without the newline and indent, the markup is not interpreted. Note that in the see-also `np.lib.index_tricks.nd_grid` is reference but not linked as it appear to not be autogenerated, but this is another issue. | ||||
* | | | TST, DOC: enable refguide_check | Tyler Reddy | 2018-12-14 | 1 | -5/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | * 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 | ||||
* | | | ENH: set correct __module__ for objects in numpy's public API | Stephan Hoyer | 2018-11-13 | 1 | -0/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes GH-12271 Tests verify that everything in ``dir(numpy)`` either has ``__module__`` set to ``'numpy'``, or appears in an explicit whitelist of undocumented functions and exported bulitins. These should eventually be documented or removed. I also identified a handful of functions for which I had accidentally not setup dispatch for with ``__array_function__`` before, because they were listed under "ndarray methods" in ``_add_newdocs.py``. I guess that should be a lesson in trusting code comments :). | ||||
* | | | BUG: Revert linspace import for concatenation funcs (#12265) | James Bourbeau | 2018-10-26 | 1 | -3/+2 |
| | | | | | | | | | BUG: test and fix import linspace in index_tricks | ||||
* | | | MAINT: set preferred __module__ for numpy functions | Stephan Hoyer | 2018-10-23 | 1 | -1/+6 |
| | | | |||||
* | | | MAINT: remove unused nd_grid __len__ | Tyler Reddy | 2018-10-16 | 1 | -3/+0 |
| | | | |||||
* | | | ENH: __array_function__ for np.lib, part 1 | Stephan Hoyer | 2018-10-08 | 1 | -0/+17 |
| |/ |/| | | | | | np.lib.arraypad through np.lib.nanfunctions | ||||
* | | MAINT: Remove python-side docstrings from add_newdocs. | Eric Wieser | 2018-07-01 | 1 | -31/+92 |
| | | | | | | | | | | | | From the header comment in add_newdocs, it is only intended for C modules. This also fixes `help(np.mgrid)`, which previously only showed the help for `nd_grid` | ||||
* | | BUG: Avoid deprecated non-tuple indexing | Eric Wieser | 2018-05-28 | 1 | -1/+1 |
| | | | | | | | | np.ogrid was not tested anyway, so this was not caught. | ||||
* | | BUG: Fix mutating state between items in np,r_ | Eric Wieser | 2017-12-11 | 1 | -3/+3 |
| | | | | | | | | It's not at all clear what trans1d is supposed to do here, but it's certainly not supposed to change value between elements! | ||||
* | | ENH: Allow np.r_ to accept 0d arrays | Eric Wieser | 2017-12-11 | 1 | -16/+11 |
| | | | | | | | | Fixes gh-9233 |