summaryrefslogtreecommitdiff
path: root/doc/source/reference/c-api
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #16370 from takanori-pskq/i16217Matti Picus2020-12-165-120/+140
|\ | | | | DOC: Fix for building with sphinx 3
| * DOC: Fix for buildling with sphinx 3takanori-pskq2020-11-065-120/+140
| |
* | ENH,API: Store exported buffer info on the array (#16938)Sebastian Berg2020-11-261-0/+24
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ENH,API: Store exported buffer info on the array This speeds up array deallocation and buffer exports, since it removes the need to global dictionary lookups. It also somewhat simplifies the logic. The main advantage is prossibly less the speedup itself (which is not large compared to most things that happen in the livetime of an array), but rather that no unnecessary work is done for shortlived arrays, which never export a buffer. The downside of this approach is that the ABI changes for anyone who would be subclassing ndarray in C. * MAINT: Do not tag the NULL (no buffers exported) The allocation is not the right place to initialize to anything but NULL, so take the easy path and do not tag the NULL default. * TST: Add test for best try RuntimeError on corrupt buffer-info * Remove NPY_SIZEOF_PYARRAYOBJECT and add some documentation * Use 3 to tag the pointer and object for a "bad" one in the test * DEP: deprecate the NPY_SIZEOF_PYARRAYOBJECT macro * Tune down matti's deprecation to write the error instead. * Tweak macro, so that clang hopefully doesn't complain. * Use None instead of NULL in PyErr_WriteUnraisable, pypy seems to have a bug with it * Just comment it out... * Apply suggestions from code review Co-authored-by: Matti Picus <matti.picus@gmail.com> Co-authored-by: mattip <matti.picus@gmail.com>
* Update doc/source/reference/c-api/array.rstTakanori H2020-10-271-1/+1
| | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* DOC: Fix some referencestakanori-pskq2020-10-262-5/+6
|
* DOC: Don't use Python highlighting for non-python codeEric Wieser2020-10-252-2/+6
|
* Merge pull request #17627 from takanori-pskq/i13114-array-structMatti Picus2020-10-252-5/+5
|\ | | | | DOC: Fix the references for ``__array_*__``
| * DOC: Fix the references for ``__array_*__``takanori-pskq2020-10-252-5/+5
| |
* | Merge pull request #17630 from takanori-pskq/i13114-capsuleMatti Picus2020-10-251-2/+3
|\ \ | | | | | | DOC: Replace ``PyCObject`` with ``PyCapsule``
| * | DOC: Replace ``PyCObject`` with ``PyCapsule``takanori-pskq2020-10-251-2/+3
| |/
* | Merge pull request #17629 from takanori-pskq/i13114-pyufunc-identityMatti Picus2020-10-251-3/+9
|\ \ | | | | | | DOC: Add ``identity_value`` to ``PyUFuncObject``
| * | DOC: Add ``identity_value`` to ``PyUFuncObject``takanori-pskq2020-10-251-3/+9
| |/
* | DOC: Add entries for macrostakanori-pskq2020-10-251-3/+29
|/
* DOC: Fixup for ``PyUFunc_*``takanori-pskq2020-10-241-1/+3
|
* DOC: Fix some referencestakanori-pskq2020-10-242-6/+7
|
* Merge pull request #17570 from takanori-pskq/i13114-feature-versionMatti Picus2020-10-221-12/+16
|\ | | | | DOC: Add the entry for ``NPY_FEATURE_VERSION``
| * DOC: Fixuptakanori-pskq2020-10-221-17/+16
| |
| * DOC: Add the entry for ``NPY_FEATURE_VERSION``takanori-pskq2020-10-151-0/+5
| |
* | DOC: Fix typostakanori-pskq2020-10-151-2/+2
|/
* DOC: Remove directives for some constantstakanori-pskq2020-10-142-16/+6
|
* DOC: Add missing types to C function docs (#17549)Takanori H2020-10-134-86/+87
| | | `.. c:function::` expects its contents to be a valid C prototype, meaning the return types and arguments are all need types.
* DOC: Fix Boolean types in C functionstakanori-pskq2020-10-102-9/+9
|
* DOC: Fix the entries for members of structurestakanori-pskq2020-10-071-251/+251
|
* Fix: Remove the link for `PyArrayMapIterObject`takanori-pskq2020-10-061-3/+1
|
* Fixuptakanori-pskq2020-10-061-2/+2
|
* DOC: Add some entries for C types and macrostakanori-pskq2020-10-062-74/+113
|
* DOC: Fix some references for macrostakanori-pskq2020-10-054-9/+18
|
* DOC: Fix the references for macrostakanori-pskq2020-10-042-1/+13
|
* DOC: Fix types including curly bracestakanori-pskq2020-08-135-12/+12
|
* Merge pull request #16896 from takanori-pskq/i13114-5Matti Picus2020-07-317-178/+169
|\ | | | | DOC: Improve documentation of C code
| * DOC: Fixuptakanori-pskq2020-07-252-14/+5
| |
| * DOC: Fix the role of references (var -> macro)takanori-pskq2020-07-257-163/+163
| |
| * DOC: Remove links for C codestakanori-pskq2020-07-181-3/+3
| |
* | DOC: Fix the declarations of C fuctions (#16897)Takanori H2020-07-311-2/+2
|/ | | * DOC: Fix the declarations of C fuctions
* DOC: Add PyArray_ContiguousFromObject C docs (gh-16207)Guilherme Leobas2020-05-181-3/+11
| | | | | | Add documentation for `PyArray_ContiguousFromObject` similar to the other macros wrapping `PyArray_FromAny` Fixes #16196
* DOC: Fix typos and cosmetic issuesMartin Michlmayr2020-05-171-1/+1
|
* DOC: Add missing bracket (gh-16051)Chunlin2020-04-251-1/+1
| | | Add missing closing brackets, script to generate the list in the PR gh-16051.
* DOC: fix typo in C-API referenceGabriel Gerlero2020-03-271-1/+1
|
* MAINT: simplify code that assumes str/unicode and int/long are different ↵Eric Wieser2020-03-261-1/+1
| | | | | types (#15816) Cleanup from the dropping of python 2
* DOC: Fix coremath.rst to fix refguide_check (#15718)Pierre de Buyl2020-03-061-1/+6
| | | | | * DOC: fix coremath.rst to fix refguide_check Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* Merge pull request #15427 from seberg/deprecate-unused-c-apiMatti Picus2020-02-022-72/+16
|\ | | | | DEP: Schedule unused C-API functions for removal/disabling
| * DEP: Deprecate PyUFunc_GenericFunction public C-API functionSebastian Berg2020-01-311-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This function provides mainly the same API as PyObject_Call() with the exception of skipping ufunc overrides and output array wraps. It is fairly unwieldy to use, since ownership of all inputs and outputs is transferred, but otherwise it still uses args and kwargs as inputs. As such, no known usage exists and PyObject_Call seems a reasonable replacement for possible usage. Keeping it around means that we would may have to add tests or risk breaking this function when ufunc code is refactored.
| * DEP: Schedule PyArray_GetArrayParamsFromObject for removalSebastian Berg2020-01-311-63/+6
| | | | | | | | | | | | | | | | | | | | The function has no known usage outside of NumPy. It is fairly complex to use due to how it behaves with scalars, and, at least with a given "flexible" dtype would require additional access to the private PyArray_AdaptFlexibleDType function. Removing the function from public API will simplify refactor work of the dtype and dimension recovery.
* | MAINT: Const qualify UFunc inner loops (gh-15355)Kai Striega2020-01-211-30/+32
|/ | | | | This PR const qualifies the dimension and strides arguments of PyUFuncGenericFunction. Const qualified arguments make it simpler to reason about the behaviour of these ufuncs and prevents accidental mutation. As the const is now required this PR also const qualifies calls to PyUFuncGenericFunction inside the NumPy source code. This closes #15252
* Merge pull request #15118 from mattip/cleanup-array-callSebastian Berg2020-01-161-11/+10
|\ | | | | API: remove undocumented use of __array__(dtype, context)
| * MAINT: remove undocumented use of context in __array__(dtype, context)mattip2020-01-161-11/+10
| |
* | DEP: Deprecate `->f->fastclip` at registration timeSebastian Berg2020-01-151-1/+11
| | | | | | | | | | This adds the additional deprecation of fastclip if it is set at registration time instead of only testing that it is never used.
* | Merge pull request #14942 from seberg/clean-fasttakeMatti Picus2020-01-161-2/+10
|\ \ | | | | | | MAINT,API: ignore and NULL fasttake/fastputmask ArrFuncs slots
| * | DEP: Actually deprecate fasttake and fastclipmaskSebastian Berg2020-01-151-2/+10
| |/
* | DOC: fix typosBrian Wignall2020-01-141-5/+5
|/