(array_x: np.ndarray)
Checks if an arrays is made of floats. If not, raises an error.

    Parameters
    ----------
    array_x:
        Array to be checked
Checks if an arrays is made of floats. If not, raises an error.
Checks if an arrays is made of floats . If not raises an error .
def _check_if_array_of_floats(array_x: np.ndarray):
    """ Checks if an arrays is made of floats. If not, raises an error.

    Parameters
    ----------
    array_x:
        Array to be checked
    """
    msg = "dtype of {} array must be 'float', float32 or float64"
    if array_x.dtype not in ['float', 'float32', 'float64']:
        raise ValueError(msg.format(array_x))
def _check_if_array_of_floats ( array_x : np . ndarray ) : msg = "dtype of {} array must be 'float', float32 or float64" if array_x . dtype not in [ 'float' , 'float32' , 'float64' ] : raise ValueError ( msg . format ( array_x ) )