summaryrefslogtreecommitdiff
path: root/doc/source/reference/c-api
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|/
* MAINT: Improve const-correctness of shapes and stridesEric Wieser2020-01-061-1/+1
| | | | | | Marking these arguments as const makes it easier to reason about these functions, and prevent accidental mutation. The C99 standard (6.2.5/26 "Types") guarantees that ABI compatibility is preserved here.
* Fix typos, via a Levenshtein-style correctorBrian Wignall2019-12-191-2/+2
|
* API: Use `ResultType` in `PyArray_ConvertToCommonType`Sebastian Berg2019-11-211-8/+12
| | | | | | | | | | | | | | | | | | This slightly modifies the behaviour of `np.choose` (practically a bug fix) and the public function itself. The function is not used within e.g. SciPy, so the small performance hit of this implementation is probably insignificant. The change should help clean up dtypes a bit, since the whole "scalar cast" logic is brittle and should be deprecated/removed, and this is probably one of the few places actually using it. The choose change means that: ``` np.choose([0], (1000, np.array([1], dtype=np.uint8))) ``` will actually return a value of 1000 (the dtype not being uint8).
* DOC: convert `None` to bare None or ``None``mattip2019-10-151-1/+1
|
* DOC: fix function argument definitions and add vertical space around macrosmattip2019-10-151-55/+68
|
* DOC: Document the NPY_SCALARKIND values as C variables.MSeifert042019-09-221-8/+15
| | | | | Currently the ":c:data:" links could not resolve these because the values were not explicitly documented.
* DOC: Add backslashes so the function renders correctly with sphinx.MSeifert042019-09-131-3/+3
|
* DOC: Fix reference NPY_ARRAY_OWNDATA instead of NPY_OWNDATA.MSeifert042019-09-121-1/+1
|
* BUG: Fix fieldless comparison broadcastingAllan Haldane2019-09-051-2/+3
| | | | Fixes #13438
* BUG: Fix comparison of fieldless structured arraysAllan Haldane2019-08-311-0/+3
|
* DOC: fix typoColin Snyder2019-07-241-3/+3
|
* DOC: Array API : Directory restructure and code cleanup (#14010)Kriti Singh2019-07-2210-0/+8227
* Minor improvements in Array API docs * Directory restruture