summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/reference/c-api/array.rst10
-rw-r--r--doc/source/reference/c-api/types-and-structures.rst24
-rw-r--r--doc/source/release/1.13.0-notes.rst2
-rw-r--r--doc/source/release/1.14.0-notes.rst2
-rw-r--r--doc/source/release/1.16.5-notes.rst4
-rw-r--r--doc/source/release/1.18.0-notes.rst2
-rw-r--r--doc/source/user/c-info.beyond-basics.rst2
7 files changed, 32 insertions, 14 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
diff --git a/doc/source/release/1.13.0-notes.rst b/doc/source/release/1.13.0-notes.rst
index 5d8c932fe..9da9a99d7 100644
--- a/doc/source/release/1.13.0-notes.rst
+++ b/doc/source/release/1.13.0-notes.rst
@@ -243,7 +243,7 @@ It is similar to Matlab's square bracket notation for creating block matrices.
``isin`` function, improving on ``in1d``
----------------------------------------
-The new function ``isin`` tests whether each element of an N-dimensonal
+The new function ``isin`` tests whether each element of an N-dimensional
array is present anywhere within a second array. It is an enhancement
of ``in1d`` that preserves the shape of the first array.
diff --git a/doc/source/release/1.14.0-notes.rst b/doc/source/release/1.14.0-notes.rst
index 462631de6..8ee876fd3 100644
--- a/doc/source/release/1.14.0-notes.rst
+++ b/doc/source/release/1.14.0-notes.rst
@@ -43,7 +43,7 @@ New functions
floating-point scalars unambiguously with control of rounding and padding.
* ``PyArray_ResolveWritebackIfCopy`` and ``PyArray_SetWritebackIfCopyBase``,
- new C-API functions useful in achieving PyPy compatibity.
+ new C-API functions useful in achieving PyPy compatibility.
Deprecations
diff --git a/doc/source/release/1.16.5-notes.rst b/doc/source/release/1.16.5-notes.rst
index 5b6eb585b..5bf576fd0 100644
--- a/doc/source/release/1.16.5-notes.rst
+++ b/doc/source/release/1.16.5-notes.rst
@@ -51,14 +51,14 @@ A total of 23 pull requests were merged for this release.
* `#13933 <https://github.com/numpy/numpy/pull/13933>`__: MAINT/BUG/DOC: Fix errors in _add_newdocs
* `#13984 <https://github.com/numpy/numpy/pull/13984>`__: BUG: fix byte order reversal for datetime64[ns]
* `#13994 <https://github.com/numpy/numpy/pull/13994>`__: MAINT,BUG: Use nbytes to also catch empty descr during allocation
-* `#14042 <https://github.com/numpy/numpy/pull/14042>`__: BUG: np.array cleared errors occured in PyMemoryView_FromObject
+* `#14042 <https://github.com/numpy/numpy/pull/14042>`__: BUG: np.array cleared errors occurred in PyMemoryView_FromObject
* `#14043 <https://github.com/numpy/numpy/pull/14043>`__: BUG: Fixes for Undefined Behavior Sanitizer (UBSan) errors.
* `#14044 <https://github.com/numpy/numpy/pull/14044>`__: BUG: ensure that casting to/from structured is properly checked.
* `#14045 <https://github.com/numpy/numpy/pull/14045>`__: MAINT: fix histogram*d dispatchers
* `#14046 <https://github.com/numpy/numpy/pull/14046>`__: BUG: further fixup to histogram2d dispatcher.
* `#14052 <https://github.com/numpy/numpy/pull/14052>`__: BUG: Replace contextlib.suppress for Python 2.7
* `#14056 <https://github.com/numpy/numpy/pull/14056>`__: BUG: fix compilation of 3rd party modules with Py_LIMITED_API...
-* `#14057 <https://github.com/numpy/numpy/pull/14057>`__: BUG: Fix memory leak in dtype from dict contructor
+* `#14057 <https://github.com/numpy/numpy/pull/14057>`__: BUG: Fix memory leak in dtype from dict constructor
* `#14058 <https://github.com/numpy/numpy/pull/14058>`__: DOC: Document array_function at a higher level.
* `#14084 <https://github.com/numpy/numpy/pull/14084>`__: BUG, DOC: add new recfunctions to `__all__`
* `#14162 <https://github.com/numpy/numpy/pull/14162>`__: BUG: Remove stray print that causes a SystemError on python 3.7
diff --git a/doc/source/release/1.18.0-notes.rst b/doc/source/release/1.18.0-notes.rst
index d59f985cd..15e0ad77f 100644
--- a/doc/source/release/1.18.0-notes.rst
+++ b/doc/source/release/1.18.0-notes.rst
@@ -195,7 +195,7 @@ adjustment to user- facing code. Specifically, code that either disallowed the
calls to ``numpy.isinf`` or ``numpy.isnan`` or checked that they raised an
exception will require adaptation, and code that mistakenly called
``numpy.fmax`` and ``numpy.fmin`` instead of ``numpy.maximum`` or
-``numpy.minimum`` respectively will requre adjustment. This also affects
+``numpy.minimum`` respectively will require adjustment. This also affects
``numpy.nanmax`` and ``numpy.nanmin``.
(`gh-14841 <https://github.com/numpy/numpy/pull/14841>`__)
diff --git a/doc/source/user/c-info.beyond-basics.rst b/doc/source/user/c-info.beyond-basics.rst
index 62e8139fe..9e9cd3067 100644
--- a/doc/source/user/c-info.beyond-basics.rst
+++ b/doc/source/user/c-info.beyond-basics.rst
@@ -110,7 +110,7 @@ to a small(er) fraction of the total time. Even if the interior of the
loop is performed without a function call it can be advantageous to
perform the inner loop over the dimension with the highest number of
elements to take advantage of speed enhancements available on micro-
-processors that use pipelining to enhance fundmental operations.
+processors that use pipelining to enhance fundamental operations.
The :c:func:`PyArray_IterAllButAxis` ( ``array``, ``&dim`` ) constructs an
iterator object that is modified so that it will not iterate over the