@@ -460,7 +460,7 @@ def repeat(a, repeats, axis=None):
460
460
--------
461
461
tile : Tile an array.
462
462
unique : Find the unique elements of an array.
463
-
463
+
464
464
Examples
465
465
--------
466
466
>>> np.repeat(3, 4)
@@ -2007,8 +2007,8 @@ def compress(condition, a, axis=None, out=None):
2007
2007
--------
2008
2008
take, choose, diag, diagonal, select
2009
2009
ndarray.compress : Equivalent method in ndarray
2010
- np. extract: Equivalent method when working on 1-D arrays
2011
- ufuncs-output-type
2010
+ extract: Equivalent method when working on 1-D arrays
2011
+ :ref:` ufuncs-output-type`
2012
2012
2013
2013
Examples
2014
2014
--------
@@ -2082,7 +2082,7 @@ def clip(a, a_min, a_max, out=None, **kwargs):
2082
2082
2083
2083
See Also
2084
2084
--------
2085
- ufuncs-output-type
2085
+ :ref:` ufuncs-output-type`
2086
2086
2087
2087
Examples
2088
2088
--------
@@ -2278,7 +2278,7 @@ def any(a, axis=None, out=None, keepdims=np._NoValue):
2278
2278
the same shape as the expected output and its type is preserved
2279
2279
(e.g., if it is of type float, then it will remain so, returning
2280
2280
1.0 for True and 0.0 for False, regardless of the type of `a`).
2281
- See `ufuncs-output-type` for more details.
2281
+ See :ref: `ufuncs-output-type` for more details.
2282
2282
2283
2283
keepdims : bool, optional
2284
2284
If this is set to True, the axes which are reduced are left
@@ -2363,7 +2363,7 @@ def all(a, axis=None, out=None, keepdims=np._NoValue):
2363
2363
Alternate output array in which to place the result.
2364
2364
It must have the same shape as the expected output and its
2365
2365
type is preserved (e.g., if ``dtype(out)`` is float, the result
2366
- will consist of 0.0's and 1.0's). See `ufuncs-output-type` for more
2366
+ will consist of 0.0's and 1.0's). See :ref: `ufuncs-output-type` for more
2367
2367
details.
2368
2368
2369
2369
keepdims : bool, optional
@@ -2442,7 +2442,7 @@ def cumsum(a, axis=None, dtype=None, out=None):
2442
2442
out : ndarray, optional
2443
2443
Alternative output array in which to place the result. It must
2444
2444
have the same shape and buffer length as the expected output
2445
- but the type will be cast if necessary. See `ufuncs-output-type` for
2445
+ but the type will be cast if necessary. See :ref: `ufuncs-output-type` for
2446
2446
more details.
2447
2447
2448
2448
Returns
@@ -2613,7 +2613,7 @@ def amax(a, axis=None, out=None, keepdims=np._NoValue, initial=np._NoValue,
2613
2613
out : ndarray, optional
2614
2614
Alternative output array in which to place the result. Must
2615
2615
be of the same shape and buffer length as the expected output.
2616
- See `ufuncs-output-type` for more details.
2616
+ See :ref: `ufuncs-output-type` for more details.
2617
2617
2618
2618
keepdims : bool, optional
2619
2619
If this is set to True, the axes which are reduced are left
@@ -2738,7 +2738,7 @@ def amin(a, axis=None, out=None, keepdims=np._NoValue, initial=np._NoValue,
2738
2738
out : ndarray, optional
2739
2739
Alternative output array in which to place the result. Must
2740
2740
be of the same shape and buffer length as the expected output.
2741
- See `ufuncs-output-type` for more details.
2741
+ See :ref: `ufuncs-output-type` for more details.
2742
2742
2743
2743
keepdims : bool, optional
2744
2744
If this is set to True, the axes which are reduced are left
@@ -2948,7 +2948,7 @@ def prod(a, axis=None, dtype=None, out=None, keepdims=np._NoValue,
2948
2948
See Also
2949
2949
--------
2950
2950
ndarray.prod : equivalent method
2951
- ufuncs-output-type
2951
+ :ref:` ufuncs-output-type`
2952
2952
2953
2953
Notes
2954
2954
-----
@@ -3044,7 +3044,7 @@ def cumprod(a, axis=None, dtype=None, out=None):
3044
3044
3045
3045
See Also
3046
3046
--------
3047
- ufuncs-output-type
3047
+ :ref:` ufuncs-output-type`
3048
3048
3049
3049
Notes
3050
3050
-----
@@ -3190,7 +3190,7 @@ def around(a, decimals=0, out=None):
3190
3190
out : ndarray, optional
3191
3191
Alternative output array in which to place the result. It must have
3192
3192
the same shape as the expected output, but the type of the output
3193
- values will be cast if necessary. See `ufuncs-output-type` for more
3193
+ values will be cast if necessary. See :ref: `ufuncs-output-type` for more
3194
3194
details.
3195
3195
3196
3196
Returns
@@ -3305,7 +3305,7 @@ def mean(a, axis=None, dtype=None, out=None, keepdims=np._NoValue):
3305
3305
Alternate output array in which to place the result. The default
3306
3306
is ``None``; if provided, it must have the same shape as the
3307
3307
expected output, but the type will be cast if necessary.
3308
- See `ufuncs-output-type` for more details.
3308
+ See :ref: `ufuncs-output-type` for more details.
3309
3309
3310
3310
keepdims : bool, optional
3311
3311
If this is set to True, the axes which are reduced are left
@@ -3440,12 +3440,12 @@ def std(a, axis=None, dtype=None, out=None, ddof=0, keepdims=np._NoValue):
3440
3440
See Also
3441
3441
--------
3442
3442
var, mean, nanmean, nanstd, nanvar
3443
- ufuncs-output-type
3443
+ :ref:` ufuncs-output-type`
3444
3444
3445
3445
Notes
3446
3446
-----
3447
3447
The standard deviation is the square root of the average of the squared
3448
- deviations from the mean, i.e., ``std = sqrt(mean(x))``, where
3448
+ deviations from the mean, i.e., ``std = sqrt(mean(x))``, where
3449
3449
``x = abs(a - a.mean())**2``.
3450
3450
3451
3451
The average squared deviation is typically calculated as ``x.sum() / N``,
@@ -3566,7 +3566,7 @@ def var(a, axis=None, dtype=None, out=None, ddof=0, keepdims=np._NoValue):
3566
3566
See Also
3567
3567
--------
3568
3568
std, mean, nanmean, nanstd, nanvar
3569
- ufuncs-output-type
3569
+ :ref:` ufuncs-output-type`
3570
3570
3571
3571
Notes
3572
3572
-----
0 commit comments