fatf.utils.array.validation.is_numerical_array

fatf.utils.array.validation.is_numerical_array(array)[source]

Determines whether a numpy array-like object has a numerical data type.

Checks whether the array is of one of the following (numerical) types: boolean, (signed) byte – boolean, unsigned integer, (signed) integer, floating-point or complex-floating point.

Parameters
arraynumpy.ndarray

The array to be checked.

Returns
is_numericalboolean

True if the array has a numerical data type, False otherwise.

Raises
TypeError

The input array is not a numpy array-like object.