@staticmethod
def recurrence_points_end(sub_matrix):
    """
        End index of the sub matrix specific segment within the global recurrence point array.

        :param sub_matrix: Sub matrix.
        :return: Recurrence points end.
        """
    return sub_matrix.start_x + sub_matrix.dim_x
