@staticmethod
def vertical_length_carryover_end(sub_matrix):
    """
        End index of the sub matrix specific segment within the global vertical length carryover array.

        :param sub_matrix: Sub matrix.
        :return: Vertical length carryover end.
        """
    return sub_matrix.start_x + sub_matrix.dim_x
