def idx_to_elements(array, idx):
    """ Returns the elements of a 2d-array located at `idx`.
    :param array: 2d numpy array from which to extract the elements.
    :param idx: An iterable of desired indexes.
    """
    return array[idx]
