assert_array_max_ulp(a, b, maxulp=1, dtype=None)
For computing the ULP difference, this API does not differentiate between various representations of NAN (ULP difference between 0x7fc00000 and 0xffc00000 is zero).
Input arrays to be compared.
The maximum number of units in the last place that elements of a
and b
can differ. Default is 1.
If one or more elements differ by more than :None:None:`maxulp`
.
Array containing number of representable floating point numbers between items in a
and b
.
Check that all items of arrays differ in at most N Units in the Last Place.
assert_array_almost_equal_nulp
Compare two arrays relatively to their spacing.
>>> a = np.linspace(0., 1., 100)See :
... res = np.testing.assert_array_max_ulp(a, np.arcsin(np.sin(a)))
The following pages refer to to this document either explicitly or contain code examples using this.
numpy.testing._private.utils.assert_array_almost_equal
numpy.testing._private.utils.assert_almost_equal
numpy.testing._private.utils.assert_array_equal
numpy.testing._private.utils.assert_array_almost_equal_nulp
numpy.testing._private.utils.assert_allclose
numpy.testing._private.utils.assert_approx_equal
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them