(sizes)
return rv
Convert sequence of numbers into pairs of low-high pairs

    >>> from sympy.matrices.expressions.blockmatrix import bounds
    >>> bounds((1, 10, 50))
    [(0, 1), (1, 11), (11, 61)]
Convert sequence of numbers into pairs of low-high pairs
Convert sequence of numbers into pairs of low - high pairs
def bounds(sizes):
    """ Convert sequence of numbers into pairs of low-high pairs

    >>> from sympy.matrices.expressions.blockmatrix import bounds
    >>> bounds((1, 10, 50))
    [(0, 1), (1, 11), (11, 61)]
    """
    low = 0
    rv = []
    for size in sizes:
        rv.append((low, low + size))
        low += size
    return rv
def bounds ( sizes ) : low = 0 rv = [ ] for size in sizes : rv . append ( ( low , low + size ) ) low += size return rv