colour.utilities.xp_isclose#
- colour.utilities.xp_isclose(a: ArrayLike, b: ArrayLike, *, rtol: float = 1e-5, atol: float = 1e-8, xp: ProtocolArrayNamespace | ModuleType | None = None) NDArrayBoolean[source]#
Array API compatible implementation of
numpy.isclose().- Parameters:
a (ArrayLike) – First array.
b (ArrayLike) – Second array.
rtol (float) – Relative tolerance.
atol (float) – Absolute tolerance.
xp (ProtocolArrayNamespace | ModuleType | None) – Array namespace module. If None, derived from
aandb.
- Returns:
Boolean array of element-wise comparisons.
- Return type: