colour.utilities.is_non_ndarray#
- colour.utilities.is_non_ndarray(a: Any) bool[source]#
Determine whether the specified object is a non-NumPy array.
- Parameters:
a (Any) – Object to test.
- Returns:
Whether the object is a non-NumPy array (e.g., JAX, PyTorch, CuPy).
- Return type:
Examples
>>> is_non_ndarray(np.array([1, 2, 3])) False >>> is_non_ndarray([1, 2, 3]) False