@@ -66,15 +66,11 @@ and its sub-types).
66
66
67
67
.. c:function:: void PyArray_ENABLEFLAGS(PyArrayObject* arr, int flags)
68
68
69
- .. versionadded:: 1.7
70
-
71
69
Enables the specified array flags. This function does no validation,
72
70
and assumes that you know what you're doing.
73
71
74
72
.. c:function:: void PyArray_CLEARFLAGS(PyArrayObject* arr, int flags)
75
73
76
- .. versionadded:: 1.7
77
-
78
74
Clears the specified array flags. This function does no validation,
79
75
and assumes that you know what you're doing.
80
76
@@ -97,8 +93,6 @@ and its sub-types).
97
93
98
94
.. c :function :: npy_intp *PyArray_SHAPE (PyArrayObject *arr)
99
95
100
- .. versionadded :: 1.7
101
-
102
96
A synonym for :c:func: `PyArray_DIMS `, named to be consistent with the
103
97
`shape <numpy.ndarray.shape> ` usage within Python.
104
98
@@ -157,8 +151,6 @@ and its sub-types).
157
151
158
152
.. c:function:: PyArray_Descr *PyArray_DTYPE(PyArrayObject* arr)
159
153
160
- .. versionadded:: 1.7
161
-
162
154
A synonym for PyArray_DESCR, named to be consistent with the
163
155
'dtype' usage within Python.
164
156
@@ -275,8 +267,6 @@ From scratch
275
267
PyArrayObject* prototype, NPY_ORDER order, PyArray_Descr* descr, \
276
268
int subok)
277
269
278
- .. versionadded:: 1.6
279
-
280
270
This function steals a reference to *descr* if it is not NULL.
281
271
This array creation routine allows for the convenient creation of
282
272
a new array matching an existing array's shapes and memory layout,
@@ -406,8 +396,6 @@ From scratch
406
396
407
397
.. c:function:: int PyArray_SetBaseObject(PyArrayObject* arr, PyObject* obj)
408
398
409
- .. versionadded:: 1.7
410
-
411
399
This function **steals a reference** to ``obj`` and sets it as the
412
400
base property of ``arr``.
413
401
@@ -934,8 +922,6 @@ argument must be a :c:expr:`PyObject *` that can be directly interpreted as a
934
922
called on flexible dtypes. Types that are attached to an array will always
935
923
be sized, hence the array form of this macro not existing.
936
924
937
- .. versionchanged:: 1.18
938
-
939
925
For structured datatypes with no fields this function now returns False.
940
926
941
927
.. c:function:: int PyTypeNum_ISUSERDEF(int num)
@@ -1065,8 +1051,6 @@ Converting data types
1065
1051
.. c:function:: int PyArray_CanCastTypeTo( \
1066
1052
PyArray_Descr* fromtype, PyArray_Descr* totype, NPY_CASTING casting)
1067
1053
1068
- .. versionadded:: 1.6
1069
-
1070
1054
Returns non-zero if an array of data type *fromtype* (which can
1071
1055
include flexible types) can be cast safely to an array of data
1072
1056
type *totype* (which can include flexible types) according to
@@ -1081,8 +1065,6 @@ Converting data types
1081
1065
.. c:function:: int PyArray_CanCastArrayTo( \
1082
1066
PyArrayObject* arr, PyArray_Descr* totype, NPY_CASTING casting)
1083
1067
1084
- .. versionadded:: 1.6
1085
-
1086
1068
Returns non-zero if *arr* can be cast to *totype* according
1087
1069
to the casting rule given in *casting*. If *arr* is an array
1088
1070
scalar, its value is taken into account, and non-zero is also
@@ -1096,8 +1078,6 @@ Converting data types
1096
1078
internally. It is currently provided for backwards compatibility,
1097
1079
but expected to be eventually deprecated.
1098
1080
1099
- .. versionadded:: 1.6
1100
-
1101
1081
If *arr* is an array, returns its data type descriptor, but if
1102
1082
*arr* is an array scalar (has 0 dimensions), it finds the data type
1103
1083
of smallest size to which the value may be converted
@@ -1110,8 +1090,6 @@ Converting data types
1110
1090
.. c:function:: PyArray_Descr* PyArray_PromoteTypes( \
1111
1091
PyArray_Descr* type1, PyArray_Descr* type2)
1112
1092
1113
- .. versionadded:: 1.6
1114
-
1115
1093
Finds the data type of smallest size and kind to which *type1* and
1116
1094
*type2* may be safely converted. This function is symmetric and
1117
1095
associative. A string or unicode result will be the proper size for
@@ -1121,8 +1099,6 @@ Converting data types
1121
1099
npy_intp narrs, PyArrayObject **arrs, npy_intp ndtypes, \
1122
1100
PyArray_Descr **dtypes)
1123
1101
1124
- .. versionadded :: 1.6
1125
-
1126
1102
This applies type promotion to all the input arrays and dtype
1127
1103
objects, using the NumPy rules for combining scalars and arrays, to
1128
1104
determine the output type for an operation with the given set of
@@ -1161,11 +1137,6 @@ Converting data types
1161
1137
``DECREF`` 'd or a memory-leak will occur. The example template-code
1162
1138
below shows a typical usage:
1163
1139
1164
- .. versionchanged:: 1.18.0
1165
- A mix of scalars and zero-dimensional arrays now produces a type
1166
- capable of holding the scalar value.
1167
- Previously priority was given to the dtype of the arrays.
1168
-
1169
1140
.. code-block:: c
1170
1141
1171
1142
mps = PyArray_ConvertToCommonType(obj, &n);
@@ -2421,8 +2392,6 @@ Item selection and manipulation
2421
2392
2422
2393
.. c:function:: npy_intp PyArray_CountNonzero(PyArrayObject* self)
2423
2394
2424
- .. versionadded:: 1.6
2425
-
2426
2395
Counts the number of non-zero elements in the array object *self*.
2427
2396
2428
2397
.. c:function:: PyObject* PyArray_Nonzero(PyArrayObject* self)
@@ -2682,8 +2651,6 @@ Array Functions
2682
2651
.. c:function:: PyObject* PyArray_MatrixProduct2( \
2683
2652
PyObject* obj1, PyObject* obj, PyArrayObject* out)
2684
2653
2685
- .. versionadded:: 1.6
2686
-
2687
2654
Same as PyArray_MatrixProduct, but store the result in *out*. The
2688
2655
output array must have the correct shape, type, and be
2689
2656
C-contiguous, or an exception is raised.
@@ -2693,8 +2660,6 @@ Array Functions
2693
2660
PyArray_Descr* dtype, NPY_ORDER order, NPY_CASTING casting, \
2694
2661
PyArrayObject* out)
2695
2662
2696
- .. versionadded:: 1.6
2697
-
2698
2663
Applies the Einstein summation convention to the array operands
2699
2664
provided, returning a new array or placing the result in *out*.
2700
2665
The string in *subscripts* is a comma separated list of index
@@ -2786,8 +2751,6 @@ Other functions
2786
2751
Auxiliary data with object semantics
2787
2752
------------------------------------
2788
2753
2789
- .. versionadded :: 1.7.0
2790
-
2791
2754
.. c :type :: NpyAuxData
2792
2755
2793
2756
When working with more complex dtypes which are composed of other dtypes,
@@ -3069,8 +3032,6 @@ Broadcasting (multi-iterators)
3069
3032
Neighborhood iterator
3070
3033
---------------------
3071
3034
3072
- .. versionadded:: 1.4.0
3073
-
3074
3035
Neighborhood iterators are subclasses of the iterator object, and can be used
3075
3036
to iter over a neighborhood of a point. For example, you may want to iterate
3076
3037
over every voxel of a 3d image, and for every such voxel, iterate over an
@@ -4069,8 +4030,6 @@ extension with the lowest :c:data:`NPY_FEATURE_VERSION` as possible.
4069
4030
4070
4031
.. c:function:: unsigned int PyArray_GetNDArrayCFeatureVersion(void)
4071
4032
4072
- .. versionadded:: 1.4.0
4073
-
4074
4033
This just returns the value :c:data:`NPY_FEATURE_VERSION`.
4075
4034
:c:data:`NPY_FEATURE_VERSION` changes whenever the API changes (e.g. a
4076
4035
function is added). A changed value does not always require a recompile.
@@ -4467,8 +4426,6 @@ Enumerated Types
4467
4426
4468
4427
.. c:enum:: NPY_CASTING
4469
4428
4470
- .. versionadded:: 1.6
4471
-
4472
4429
An enumeration type indicating how permissive data conversions should
4473
4430
be. This is used by the iterator added in NumPy 1.6, and is intended
4474
4431
to be used more broadly in a future version.
0 commit comments