summaryrefslogtreecommitdiff
path: root/doc/source/reference
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #23473 from F3eQnxN3RriK/maint-link-writebackifcopyMatti Picus2023-03-281-1/+1
|\ \ | | | | | | DOC: Fix a wrong format of reference
| * | MAINT: Fix a wrong format of referenceyuki2023-03-271-1/+1
| | |
* | | MAINT: Fix missing asteriskyuki2023-03-271-1/+1
|/ /
* | DOC: add entry for `numpy.character`yuki2023-03-251-0/+4
| |
* | MAINT: Fix a broken section linkyuki2023-03-241-2/+2
| |
* | Merge pull request #23404 from ngoldbaum/dtype-class-array-creationSebastian Berg2023-03-231-1/+1
|\ \ | | | | | | ENH: allow using dtype classes in array creation functions
| * | ENH: allow using dtype classes in array creation functionsNathan Goldbaum2023-03-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables writing np.array(some_object, dtype=type(np.dtype('i'))). This is a follow-on from https://github.com/numpy/numpy/pull/23154, see that PR for more details. I had to add a new include to `ctors.h` to bring in the definition of the `npy_dtype_info` struct. Since `ctors.h` is included in many other files inside numpy, I found that I needed to modify fewer includes across numpy if I moved the definition of `npy_dtype_info` to `common.h` from `descriptor.h`. The new includes of `common.h` are needed to support later includes of `ctors.h` in those files. If anyone has an alternate place to put `npy_dtype_info` that would cause less churn of includes I'd love to hear about it. I spent a bunch of time tweaking the reference counts. I'm reasonably confident this is correct but not 100%, an additional careful pass over the reference count logic from a reviewer would be very appreciated. I could have made `_PyArray_FromAny` and `_PyArray_CheckFromAny` take just a `npy_dtype_info` struct, but I found it made the reference count logic more complicated, since `PyArray_FromAny` and `PyArray_CheckFromAny` steal the reference to the descriptor they are passed and I needed to conserve that behavior. Also both functions support passing in a `NULL` pointer for the descriptor and I needed to maintain that behavior as well. The change to `ucsnarrow.h` fixes a preexisting conflict with the prototype in `ucsnarrow.c` that triggered a compiler error while I was working on this.
* | | 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-122-22/+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.
* | | MAINT: switch min/max with amin/amax, and add them to html docsRalf Gommers2023-03-011-2/+4
| | | | | | | | | | | | Closes gh-13877
* | | DOC: add `np.round` to the html docs, and make it the preferred aliasRalf Gommers2023-03-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The function is more commonly called `round`, both in the array API standard and in other array libraries (e.g., PyTorch has `round` but not around). Plus we have `ndarray.round`. `around` is heavily used, so keep it as an alias - but prefer `round`. For both this switch and for keeping the alias, xref gh-13877. Closes gh-19717
* | | DOC: Update dtype hierarchy and box-text alingnment png pdf dia #23252Younes2023-02-263-0/+0
|/ /
* | Merge pull request #23195 from seberg/public-rng-spawnCharles Harris2023-02-233-8/+36
|\ \ | | | | | | API: Add `rng.spawn()`, `bit_gen.spawn()`, and `bit_gen.seed_seq`
| * | DOC: Try to add Generator spawning to parallel generation and link itSebastian Berg2023-02-141-6/+21
| | |
| * | DOC: Refer to bitgenerator and rename bitgenSebastian Berg2023-02-141-3/+3
| | |
| * | DOC: Improve docs around generator spawningSebastian Berg2023-02-142-2/+15
| | | | | | | | | | | | Trying to address Robert Kerns review comments.
* | | Merge pull request #22051 from r-devulap/spr-supportMatti Picus2023-02-192-46/+49
|\ \ \ | |/ / |/| | BLD: Add compile and runtime checks for AVX512_SPR
| * | Update cpu_features.inc and compilers-diff.incRaghuveer Devulapalli2023-02-082-46/+49
| | |
* | | API: Add environment variable for behavior planned in a 2.0Sebastian Berg2023-02-101-0/+14
|/ / | | | | | | | | | | | | The idea of the flag is not to allow to change it right now, since there may be some things where that is hard to do in general, and it doesn't seem relevant: nobody is supposed to use it besides for testing.
* | DOC: Fix broken link in C-API array docs (#23117)Ross Barnowski2023-01-272-4/+6
| | | | | | | | | | | | Add link to array iterator example Co-authored-by: arunkumarkota <arunkumarkota@gmail.com> Co-authored-by: Arun Kota <arunkota@Aruns-iMac.local>
* | DOC: fix typo in C API reference (#23092)Nathan Goldbaum2023-01-251-1/+1
| | | | | | sizof -> sizeof
* | DOC: Fixup docs after the code removalSebastian Berg2023-01-221-7/+0
| | | | | | | | | | | | | | CircleCI is currently not set up to fail when docs fail, so this slipped through the cracks. It may be that the testing docs should get a bit more changes then just removing these things.
* | DOC: move section (from review) [skip ci]mattip2023-01-033-26/+19
| |
* | DOC: document NPY_DISABLE_CPU_FEATURESmattip2023-01-032-3/+26
| |
* | Update doc/source/reference/arrays.dtypes.rstNathan Goldbaum2022-12-151-1/+1
| | | | | | Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* | Update doc/source/reference/arrays.dtypes.rstNathan Goldbaum2022-12-151-2/+2
| | | | | | Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* | DOC: update discussion in dtypes docs that references Python 2Nathan Goldbaum2022-12-151-9/+9
| |
* | DOC: Some updates to the array_api compat document (#22747)Aaron Meurer2022-12-061-3/+14
| | | | | | | | | | | | | | * Add reshape differences to the array API compat document * Add an item to the array API compat document about reverse broadcasting * Make some wording easier to read
* | DOC: misleading text lead to false hopeLaurenz Kremeyer2022-12-011-3/+3
| |
* | DOC: Document exceptions and warnings in the refguideSebastian Berg2022-11-301-6/+1
| | | | | | | | | | AxisError did exist, but e.g. ComplexWarning wasn't even properly included.
* | Merge pull request #22533 from ngoldbaum/ufunc-and-function-listingSebastian Berg2022-11-292-0/+19
|\ \ | | | | | | API: Add numpy.testing.overrides to aid testing of custom array containers
| * | API: Add numpy.testing.overrides to aid testing of custom array containersNathan Goldbaum2022-11-162-0/+19
| | | | | | | | | | | | Closes #15544
* | | MAINT: npymath cleanups for isnan, isinf, isinfinite, signbit, nextafter ↵Matti Picus2022-11-281-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | (#22684) * make isnan, isinf, isfinite, signbit, nextafter aliases * fixes from review Co-authored-by: Sebastian Berg <sebastianb@nvidia.com>
* | | DOC: Remove traces of interrupt handling utilitiesSebastian Berg2022-11-211-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We do not use these in NumPy anymore, and at this point the whole `npy_interrupt.h` header only exists in case someone is using it out there. We may wish to just remove it at some point, vendoring the header is simple enough after all (and no known downstream usage exists). See also gh-7545, gh-12541
* | | Merge pull request #22607 from seberg/scalar-aliasesRalf Gommers2022-11-211-1/+0
|\ \ \ | | | | | | | | DEP: Next step in scalar type alias deprecations/futurewarnings
| * | | BUG: Fixup warning giving and remove MachAr from docsSebastian Berg2022-11-171-1/+0
| |/ /
* | | DOC: Rm round_ from autosummaryInessa Pawson2022-11-171-1/+0
|/ /
* | DOC: update libnpymath docs on its status and how to consume itRalf Gommers2022-11-062-37/+66
| | | | | | | | | | | | [skip azp] [skip actions] Closes gh-21431
* | DOC: added example in char (#22500)hannah2022-10-311-2/+8
|/ | | | | | Add examples to char module docstring showing use-cases for a couple of the functions in the package. Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* DOC: rm msort from autosummary to discourage discovery.Ross Barnowski2022-10-191-1/+0
|
* Merge pull request #22411 from DimitriPapadopoulos/python2_docSebastian Berg2022-10-131-8/+8
|\ | | | | DOC: Remove documentation specific to Python 2
| * DOC: Remove documentation specific to Python 2Dimitri Papadopoulos2022-10-081-8/+8
| |
* | DOC: Add reference links and switch to PyCapsuleRohit Goswami2022-10-101-1/+1
| |
* | DOC: Replace CObject with Capsule consistentlyRohit Goswami2022-10-101-1/+1
|/
* MAINT: Fix typos found by codespellDimitri Papadopoulos2022-10-073-3/+3
|
* DOC: Add C API documentation for NPY_ITER_MULTI_INDEXWill Ayd2022-09-191-0/+60
|
* DOC: Fix typo disutils -> distutils in numpy.distutils migration page (#22206)Loïc Estève2022-09-061-3/+3
| | | | | | | * Fix typo disutils -> distutils * Update doc/source/reference/distutils_status_migration.rst Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
* DOC: add more prominent warnings to pin setuptoolsRalf Gommers2022-08-211-0/+8
| | | | | [skip github] [skip azp]
* Merge pull request #21468 from ganesh-k13/enh_21340_show_config_threadpoolctlMatti Picus2022-08-211-0/+1
|\ | | | | ENH: Use `threadpoolctl` in `show_runtime` (a new function)