summaryrefslogtreecommitdiff
path: root/doc/source
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | DOC: Refactor description of `PyArray_Descr`yuki2023-04-151-77/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The [PyArray_Descr documentation](https://numpy.org/devdocs/reference/c-api/types-and-structures.html#c.PyArray_Descr) is indented incorrectly and has duplicated `alignment` entry in the wrong place. In order to fix the document structure while keeping the internal links, moved the flags directive after the `PyArray_Descr` description.
* | | | | DOC: Fix module name of `autoattribute` in maskedarray documentyuki2023-04-141-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | Fixed the directive to set the module name to `numpy` using the same way as used in autosummary templates. Reducing two warnings (see gh-13114).
* | | | | DOC: Remove descriptions of non-existent C-types (#23584)yuki2023-04-131-16/+0
|/ / / / | | | | | | | | Specifically PyUFuncLoopObject and PyUFuncReduceObject
* | | | DOC: Add directive for C-type `PyArrayMapIterObject`yuki2023-04-101-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | `PyArrayMapIterObject` is referenced from other documents (e.g. https://numpy.org/devdocs/reference/c-api/array.html#c.PyArray_MapIterSwapAxes), however it has no target and causes reference warning (see gh-13114). Therefore added directive `.. c:type:: PyArrayMapIterObject` to fix these references.
* | | | Merge pull request #23562 from F3eQnxN3RriK/doc-fix-pyufuncobjectCharles Harris2023-04-091-8/+7
|\ \ \ \ | | | | | | | | | | DOC: Fix document structure of `PyUfuncObject`
| * | | | DOC: Fix document structure of `PyUfuncObject`yuki2023-04-081-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | Moved (incorrectly indented) directives of the two flags back in order to fix a reference to `identity_value`.
* | | | | Merge pull request #23560 from F3eQnxN3RriK/doc-fix-parameter-typeMatti Picus2023-04-091-1/+1
|\ \ \ \ \ | | | | | | | | | | | | DOC: Fix parameter type of `PyArray_DiscardWritebackIfCopy`
| * | | | | DOC: Fix parameter type of `PyArray_DiscardWritebackIfCopy`yuki2023-04-081-1/+1
| |/ / / / | | | | | | | | | | | | | | | | | | | | The type of parameter is `PyArrayObject`, not `PyObject`. ref: https://github.com/numpy/numpy/blob/main/numpy/core/include/numpy/ndarrayobject.h#L155-L167
* | | | | DOC: Fix missing punctuation in `array.rst`yuki2023-04-071-1/+1
|/ / / / | | | | | | | | | | | | [skip ci]
* | | | DOC: Fix description of `PyArray_DiscardWritebackIfCopy`yuki2023-04-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | If my understanding of this document is correct, `PyArray_DiscardWritebackIfCopy` should be replaced with `PyArray_ResolveWritebackIfCopy`.
* | | | DOC: Fix incorrect operators for member access in `array.rst`yuki2023-04-071-2/+2
| | | | | | | | | | | | | | | | Operators should be `->`, not `.`, for here both `obj` are pointers of C-struct.
* | | | DOC: docs added to routines.ma.rst from issue #23352 (#23368)Muhammad Ishaque Nizamani2023-04-041-0/+15
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * function added routines.ma.rst from issue #23352 * Update doc/source/reference/routines.ma.rst * imporved solution of PR #23368 and Issue #23352 * DOC: Minor style fix --------- Co-authored-by: Mukulika <60316606+Mukulikaa@users.noreply.github.com>
* | | DOC: add missing punctuation in a C API .rst file (#23516)yuki2023-04-021-1/+1
| | | | | | | | | [skip ci]
* | | Merge pull request #23509 from F3eQnxN3RriK/doc-npy-typesCharles Harris2023-03-311-97/+97
|\ \ \ | | | | | | | | DOC: Fix a structure in `NPY_TYPES`
| * | | DOC: Fix a structure in `NPY_TYPES`yuki2023-03-311-97/+97
| | |/ | |/|
* | | Merge pull request #23504 from seberg/decref-delCharles Harris2023-03-311-39/+0
|\ \ \ | | | | | | | | DOC: Remove doc for non-existing `PyArray_XDECREF_ERR`
| * | | DOC: PyArray_ArrayType doesn't existSebastian Berg2023-03-311-11/+0
| | | |
| * | | DOC: Also delete PyArray_GetArrayParamsFromObjectSebastian Berg2023-03-311-16/+0
| | | |
| * | | DOC: Remove doc for non-existing `PyArray_XDECREF_ERR`Sebastian Berg2023-03-311-12/+0
| |/ / | | | | | | | | | The macro was removed, this is just a left over.
* | | DOC: default integer dtype reflect C long size (#23507)Matti Picus2023-03-311-2/+2
|/ /
* | DEP: remove deprecated `numpy.dual` moduleRalf Gommers2023-03-282-48/+0
| | | | | | | | | | | | | | It has been deprecated since numpy 1.20, and code search engines don't turn up a reason to keep this around. [skip actions] [skip cirrus]
* | 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
| | |
* | | Merge pull request #23474 from F3eQnxN3RriK/maint-missing-asteriskMatti Picus2023-03-281-1/+1
|\ \ \ | | | | | | | | MAINT: Fix missing asterisk
| * | | MAINT: Fix missing asteriskyuki2023-03-271-1/+1
| |/ /
* | | DOC: typo, fixed "Howeve" to "However" [skip ci]Eugene Kim2023-03-271-1/+1
|/ /
* | Merge pull request #23453 from sadigulcelik/mainCharles Harris2023-03-251-2/+0
|\ \ | | | | | | DOC: typo, remove unfollowed conjunction "However" [skip ci]
| * | DOC: typo, remove unfollowed conjunction "However" [skip ci]sadigulcelik2023-03-251-2/+0
| | | | | | | | | | | | Typo fixed; remove unfollowed conjunction "However."
* | | DOC: add entry for `numpy.character`yuki2023-03-251-0/+4
|/ /
* | MAINT: Fix a broken section linkyuki2023-03-241-2/+2
| |
* | MAINT: remove support for Gitpod, add note on using CodespacesRalf Gommers2023-03-2314-291/+27
| | | | | | | | | | | | | | See this mailing list thread for the discussion on removal: https://mail.python.org/archives/list/numpy-discussion@python.org/thread/SSPI7HVL2PLWPFL42T6UNR2ENARE5A5E/ [skip azp] [skip cirrus]
* | Merge pull request #23437 from partev/patch-1Charles Harris2023-03-231-1/+1
|\ \ | | | | | | DOC: fix broken link to SciPy Tutorial
| * | DOC: fix broken link to SciPy Tutorialpartev2023-03-231-1/+1
| | |
* | | DOC: fix a link redirect to WSLpartev2023-03-231-1/+1
|/ /
* | 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__`.
* | | | DOC: Update wording related to recommended np alias (#23424)Michail Gaganis2023-03-191-2/+2
| |/ / |/| | | | | Co-authored-by: Mike-gag <gaganis.michail@gmail.com>
* | | MAINT: cleanup unused Python3.8-only code and referencesClément Robert2023-03-141-1/+1
| | |
* | | 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.
* | | BLD: Check for submodules before build (#23372)Raghuveer Devulapalli2023-03-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | - DOC: update git clone command in doc to initialize submodules - BLD: Check for submodules before building - CI: update meson.build check and Cirrus for new git submodule [skip ci] Co-authored-by: Ralf Gommers <ralf.gommers@gmail.com>
* | | Merge pull request #23311 from F3eQnxN3RriK/fix-docs-typoMukulika2023-03-021-1/+1
|\ \ \ | | | | | | | | DOC: Fix a typo
| * | | DOC: Fix a typoyuki2023-02-281-1/+1
| | | |
* | | | 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
| | |
* | | DOC: Fix some links in the usage documentyuki2023-02-252-2/+2
|/ /
* | 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
| | |