@@ -43,10 +43,10 @@ def isclose(
4343 Return a boolean array where two arrays are element-wise equal within a tolerance.
4444
4545 The tolerance values are positive, typically very small numbers. The relative
46- difference `(rtol * abs(b))` and the absolute difference atol are added together to
47- compare against the absolute difference between a and b .
46+ difference `` (rtol * abs(b))`` and the absolute difference ` atol` are added together to
47+ compare against the absolute difference between `a` and `b` .
4848
49- NaNs are treated as equal if they are in the same place and if equal_nan=True. Infs
49+ NaNs are treated as equal if they are in the same place and if `` equal_nan=True`` . Infs
5050 are treated as equal if they are in the same place and of the same sign in both
5151 arrays.
5252
@@ -67,17 +67,17 @@ def isclose(
6767 Returns
6868 -------
6969 Array
70- A boolean array of shape broadcasted from `a` and `b`, containing `True` where
71- ``a`` is close to ``b`` , and `False` otherwise.
70+ A boolean array of shape broadcasted from `a` and `b`, containing `` True` ` where
71+ `a` is close to `b` , and `` False` ` otherwise.
7272
7373 Warnings
7474 --------
75- The default atol is not appropriate for comparing numbers with magnitudes much
76- smaller than one ) (see notes).
75+ The default ` atol` is not appropriate for comparing numbers with magnitudes much
76+ smaller than one (see notes).
7777
7878 See Also
7979 --------
80- math.isclose
80+ math.isclose : Similar function in stdlib for Python scalars.
8181
8282 Notes
8383 -----
@@ -86,22 +86,22 @@ def isclose(
8686
8787 absolute(a - b) <= (atol + rtol * absolute(b))
8888
89- Unlike the built-in `math.isclose`, the above equation is not symmetric in a and b ,
90- so that `isclose(a, b)` might be different from `isclose(b, a)` in some rare
89+ Unlike the built-in `math.isclose`, the above equation is not symmetric in `a` and `b` ,
90+ so that `` isclose(a, b)`` might be different from `` isclose(b, a)` ` in some rare
9191 cases.
9292
9393 The default value of `atol` is not appropriate when the reference value `b` has
9494 magnitude smaller than one. For example, it is unlikely that ``a = 1e-9`` and
95- ``b = 2e-9`` should be considered "close", yet ``isclose(1e-9, 2e-9)`` is `True`
96- with default settings. Be sure to select atol for the use case at hand, especially
95+ ``b = 2e-9`` should be considered "close", yet ``isclose(1e-9, 2e-9)`` is `` True` `
96+ with default settings. Be sure to select ` atol` for the use case at hand, especially
9797 for defining the threshold below which a non-zero value in `a` will be considered
9898 "close" to a very small or zero value in `b`.
9999
100100 The comparison of `a` and `b` uses standard broadcasting, which means that `a` and
101- `b` need not have the same shape in order for `isclose(a, b)` to evaluate to
102- `True`.
101+ `b` need not have the same shape in order for `` isclose(a, b)` ` to evaluate to
102+ `` True` `.
103103
104- `isclose` is not defined for non-numeric data types. `bool` is considered a numeric
104+ `isclose` is not defined for non-numeric data types. `` bool` ` is considered a numeric
105105 data-type for this purpose.
106106 """
107107 xp = array_namespace (a , b ) if xp is None else xp
0 commit comments