summaryrefslogtreecommitdiff
path: root/doc/source/reference/c-api
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source/reference/c-api')
-rw-r--r--doc/source/reference/c-api/array.rst10
-rw-r--r--doc/source/reference/c-api/types-and-structures.rst24
2 files changed, 26 insertions, 8 deletions
diff --git a/doc/source/reference/c-api/array.rst b/doc/source/reference/c-api/array.rst
index 3581e3abe..ce8671a51 100644
--- a/doc/source/reference/c-api/array.rst
+++ b/doc/source/reference/c-api/array.rst
@@ -1222,7 +1222,7 @@ Converting data types
.. c:function:: int PyArray_ObjectType(PyObject* op, int mintype)
- This function is superceded by :c:func:`PyArray_MinScalarType` and/or
+ This function is superseded by :c:func:`PyArray_MinScalarType` and/or
:c:func:`PyArray_ResultType`.
This function is useful for determining a common type that two or
@@ -1236,7 +1236,7 @@ Converting data types
.. c:function:: void PyArray_ArrayType( \
PyObject* op, PyArray_Descr* mintype, PyArray_Descr* outtype)
- This function is superceded by :c:func:`PyArray_ResultType`.
+ This function is superseded by :c:func:`PyArray_ResultType`.
This function works similarly to :c:func:`PyArray_ObjectType` (...)
except it handles flexible arrays. The *mintype* argument can have
@@ -1247,7 +1247,7 @@ Converting data types
.. c:function:: PyArrayObject** PyArray_ConvertToCommonType( \
PyObject* op, int* n)
- The functionality this provides is largely superceded by iterator
+ The functionality this provides is largely superseded by iterator
:c:type:`NpyIter` introduced in 1.6, with flag
:c:data:`NPY_ITER_COMMON_DTYPE` or with the same dtype parameter for
all operands.
@@ -1438,7 +1438,7 @@ An ndarray can have a data segment that is not a simple contiguous
chunk of well-behaved memory you can manipulate. It may not be aligned
with word boundaries (very important on some platforms). It might have
its data in a different byte-order than the machine recognizes. It
-might not be writeable. It might be in Fortan-contiguous order. The
+might not be writeable. It might be in Fortran-contiguous order. The
array flags are used to indicate what can be said about data
associated with an array.
@@ -2487,7 +2487,7 @@ an element copier function as a primitive.::
Array Iterators
---------------
-As of NumPy 1.6.0, these array iterators are superceded by
+As of NumPy 1.6.0, these array iterators are superseded by
the new array iterator, :c:type:`NpyIter`.
An array iterator is a simple way to access the elements of an
diff --git a/doc/source/reference/c-api/types-and-structures.rst b/doc/source/reference/c-api/types-and-structures.rst
index 336dff211..60d8e420b 100644
--- a/doc/source/reference/c-api/types-and-structures.rst
+++ b/doc/source/reference/c-api/types-and-structures.rst
@@ -452,9 +452,9 @@ PyArrayDescr_Type and PyArray_Descr
PyArray_ScalarKindFunc *scalarkind;
int **cancastscalarkindto;
int *cancastto;
- PyArray_FastClipFunc *fastclip;
- PyArray_FastPutmaskFunc *fastputmask;
- PyArray_FastTakeFunc *fasttake;
+ PyArray_FastClipFunc *fastclip; /* deprecated */
+ PyArray_FastPutmaskFunc *fastputmask; /* deprecated */
+ PyArray_FastTakeFunc *fasttake; /* deprecated */
PyArray_ArgFunc *argmin;
} PyArray_ArrFuncs;
@@ -641,6 +641,16 @@ PyArrayDescr_Type and PyArray_Descr
.. c:member:: void fastclip( \
void *in, npy_intp n_in, void *min, void *max, void *out)
+ .. deprecated:: 1.17
+ The use of this function will give a deprecation warning when
+ ``np.clip``. Instead of this function, the datatype must
+ instead use ``PyUFunc_RegisterLoopForDescr`` to attach a custom
+ loop to ``np.core.umath.clip``, ``np.minimum``, and ``np.maximum``.
+
+ .. deprecated:: 1.19
+ Setting this function is deprecated and should always be ``NULL``,
+ if set, it will be ignored.
+
A function that reads ``n_in`` items from ``in``, and writes to
``out`` the read value if it is within the limits pointed to by
``min`` and ``max``, or the corresponding limit if outside. The
@@ -650,6 +660,10 @@ PyArrayDescr_Type and PyArray_Descr
.. c:member:: void fastputmask( \
void *in, void *mask, npy_intp n_in, void *values, npy_intp nv)
+ .. deprecated:: 1.19
+ Setting this function is deprecated and should always be ``NULL``,
+ if set, it will be ignored.
+
A function that takes a pointer ``in`` to an array of ``n_in``
items, a pointer ``mask`` to an array of ``n_in`` boolean
values, and a pointer ``vals`` to an array of ``nv`` items.
@@ -662,6 +676,10 @@ PyArrayDescr_Type and PyArray_Descr
npy_intp n_outer, npy_intp m_middle, npy_intp nelem, \
NPY_CLIPMODE clipmode)
+ .. deprecated:: 1.19
+ Setting this function is deprecated and should always be ``NULL``,
+ if set, it will be ignored.
+
A function that takes a pointer ``src`` to a C contiguous,
behaved segment, interpreted as a 3-dimensional array of shape
``(n_outer, nindarray, nelem)``, a pointer ``indarray`` to a