summaryrefslogtreecommitdiff
path: root/numpy/core/multiarray.pyi
Commit message (Collapse)AuthorAgeFilesLines
* ENH: Convert methods to vectorcall conversions (#23018)Pieter Eendebak2023-01-231-0/+1
| | | | | | | | | | | | Convert several methods to the vectorcall convention. The conversions give a performance improvement, see #20790 (comment) Some notes: * For vdot the METH_KEYWORDS was removed, as the C vdot method was positional only. * The add_docstring is converted with an additional check. It was parsed as if (!PyArg_ParseTuple(args, "OO!:add_docstring", &obj, &PyUnicode_Type, &str)), but there is no support for the ! in the npy_parse_arguments * CI was complaining about coverage of _get_ndarray_c_version. A test was added, but only to provide coverage * In function_base.py a redundant check in def place was removed Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
* Align spelling with spelling in _GetItemKeys and documentation.Adam Knapp2022-10-171-1/+1
|
* ENH: allow explicit `like=None` in all array creation functions (#22379)Jordy Williams2022-10-111-50/+50
| | | | | | | Addresses #22069. As discussed in the existing issue @seberg stated that it would be best to support explicitly defined like=None when creating arange objects. Extended to all other array_creation methods which did not currently support like=None. Closes gh-22069
* TYP,ENH: Mark all unhashable classes as suchBas van Beek2022-07-091-1/+2
|
* MAINT: Split `numpy.typing` into a public and private componentBas van Beek2022-03-181-1/+1
| | | | i.e. `numpy.typing` and `numpy._typing`
* TYP,MAINT: Explicitly allow sequences of array-likes in `np.concatenate`Bas van Beek2022-02-211-4/+12
|
* MAINT: Create the `_ArrayLike` type-alias in `numpy.typing`Bas van Beek2022-01-241-4/+1
| | | | Represents a subset of `npt.ArrayLike` that can be parametrized w.r.t. `np.generic`
* MAINT: Create the `_DTypeLike` type-alias in `numpy.typing`Bas van Beek2022-01-241-9/+1
| | | | Represents a subset of `npt.DTypeLike` that can be parametrized w.r.t. `np.generic`
* ENH: Type the `like` parameter via a `__array_function__` protocolBas van Beek2022-01-111-50/+51
|
* TYP: Allow time manipulation functions to accept `data` and `timedelta` objectsBas van Beek2022-01-061-35/+36
|
* STY: Use subscriptable `collections.abc` types over the generic aliases in …Bas van Beek2021-12-231-3/+1
|
* STY: Use subscriptable `builtins` types over the generic aliases in `typing`Bas van Beek2021-12-231-15/+12
|
* STY: Replace `Union` with the `|` operatorBas van Beek2021-12-221-4/+4
|
* STY: Replace `Optional` with the `|` operatorBas van Beek2021-12-221-26/+25
|
* resolved conflictsGagandeep Singh2021-11-021-4/+16
|\
| * ENH: Add annotations for `nditer` and `nested_iters`Bas van Beek2021-09-251-1/+13
| |
| * MAINT: Replace the old `_NestedSequence` union and remove `_RecursiveSequence`Bas van Beek2021-09-191-2/+2
| |
* | Addressed reviewsczgdp18072021-09-041-6/+1
| |
* | resolved conflictsczgdp18072021-09-031-54/+62
|\ \ | |/
| * ENH: Use custom file-like protocols instead of `typing.IO`Bas van Beek2021-09-021-4/+5
| |
| * STY: Use the PEP 457 positional-only syntax in the stub filesBas van Beek2021-08-311-40/+53
| |
| * MAINT: Drop .pyi code-paths specific to Python 3.7Bas van Beek2021-08-301-6/+4
| |
* | Made _CopyMode privateczgdp18072021-08-181-7/+7
| |
* | Shifted to CopyMode to np.array_apiczgdp18072021-08-071-1/+4
| |
* | resolved conflictsczgdp18072021-08-061-3/+55
|\ \ | |/
| * ENH: Use literals for `flagsobj.__getitem__` and `__setitem__`Bas van Beek2021-07-081-2/+21
| |
| * ENH: Mark `flagsobj` as non-hashable and non-subclassableBas van Beek2021-07-081-2/+4
| |
| * DEP: Remove annotations for `flagsobj.updateifcopy`Bas van Beek2021-07-081-1/+2
| |
| * MAINT: Move the `flagsobj` annotations to `np.core.multiarray`Bas van Beek2021-07-081-0/+30
| |
* | interface shiftedczgdp18072021-06-151-5/+12
|/
* ENH: Add annotations for all remaining multiarray functionsBas van Beek2021-06-131-2/+413
|
* ENH: Allow `array` and `empty_like` to pass through subclasses if `dtype=None`Bas van Beek2021-06-111-0/+19
|
* ENH: Add basic dtype-support to 4 array constructorsBas van Beek2021-06-111-12/+114
|
* ENH: Use literals for the constants when possibleBas van Beek2021-06-111-9/+9
|
* MAINT: Move 4 array constructors from `np.core._asarray` to `np.core.multiarray`Bas van Beek2021-06-111-0/+30
|
* MAINT: Move 9 constants from `np` to `np.core.multiarray`Bas van Beek2021-06-111-2/+12
|
* ENH: Add initial annotations to `np.core.multiarray`Bas van Beek2021-06-061-14/+252
|
* MAINT: Move `ravel_multi_index` and `unravel_index` to `np.core.multiarray`Bas van Beek2021-06-061-3/+55
|
* MAINT: Move `array`, `empty` and `zeros` to `np.core.multiarray`Bas van Beek2021-06-061-0/+57
|
* MAINT: Move `empty_like` to `np.core.multiarray`Bas van Beek2021-06-061-0/+31