| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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).
|
|/ / / /
| | | |
| | | | |
Specifically PyUFuncLoopObject and PyUFuncReduceObject
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
`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.
|
|\ \ \ \
| | | | |
| | | | | |
DOC: Fix document structure of `PyUfuncObject`
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Moved (incorrectly indented) directives of the two flags back
in order to fix a reference to `identity_value`.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
DOC: Fix parameter type of `PyArray_DiscardWritebackIfCopy`
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | | |
The type of parameter is `PyArrayObject`, not `PyObject`.
ref: https://github.com/numpy/numpy/blob/main/numpy/core/include/numpy/ndarrayobject.h#L155-L167
|
|/ / / /
| | | |
| | | |
| | | | |
[skip ci]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
If my understanding of this document is correct,
`PyArray_DiscardWritebackIfCopy` should be replaced with
`PyArray_ResolveWritebackIfCopy`.
|
| | | |
| | | |
| | | |
| | | | |
Operators should be `->`, not `.`, for here both `obj` are pointers of C-struct.
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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>
|
| | |
| | |
| | | |
[skip ci]
|
|\ \ \
| | | |
| | | | |
DOC: Fix a structure in `NPY_TYPES`
|
| | |/
| |/| |
|
|\ \ \
| | | |
| | | | |
DOC: Remove doc for non-existing `PyArray_XDECREF_ERR`
|
| | | | |
|
| | | | |
|
| |/ /
| | |
| | |
| | | |
The macro was removed, this is just a left over.
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| | |
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]
|
|\ \
| | |
| | | |
DOC: Fix a wrong format of reference
|
| | | |
|
|\ \ \
| | | |
| | | | |
MAINT: Fix missing asterisk
|
| |/ / |
|
|/ / |
|
|\ \
| | |
| | | |
DOC: typo, remove unfollowed conjunction "However" [skip ci]
|
| | |
| | |
| | |
| | | |
Typo fixed; remove unfollowed conjunction "However."
|
|/ / |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
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]
|
|\ \
| | |
| | | |
DOC: fix broken link to SciPy Tutorial
|
| | | |
|
|/ / |
|
|\ \
| | |
| | | |
ENH: allow using dtype classes in array creation functions
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|\ \ \
| | | |
| | | | |
ENH: Allow ``where`` argument to override ``__array_ufunc__``
|
| | | |
| | | |
| | | |
| | | | |
override `__array_ufunc__`.
|
| |/ /
|/| |
| | | |
Co-authored-by: Mike-gag <gaganis.michail@gmail.com>
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- 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>
|
|\ \ \
| | | |
| | | | |
DOC: Fix a typo
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Closes gh-13877
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | | |
|
|/ / |
|
|\ \
| | |
| | | |
API: Add `rng.spawn()`, `bit_gen.spawn()`, and `bit_gen.seed_seq`
|
| | | |
|