fatf.utils.array.tools.are_indices_valid

fatf.utils.array.tools.are_indices_valid(array, indices)[source]

Checks whether all the input indices are valid for the input array.

Parameters
arraynumpy.ndarray

The 2-dimensional array to be checked.

indicesnumpy.ndarray

1-dimensional array of column indices.

Returns
is_validboolean

A Boolean variable that indicates whether the input column indices are valid indices for the input array.

Raises
TypeError

Either of the input arrays is not a numpy array-like object.

IncorrectShapeError

The input array is not 2-dimensional or the indices arrays in not 1-dimensional.