'Combines together sequences of `StaticMatrixTransform`s into a single
transform and returns it.'

def _combine_statics(self, transforms):

    newtrans = []
    for currtrans in transforms:
        lasttrans = (newtrans[(-1)] if (len(newtrans) > 0) else None)
        if (isinstance(lasttrans, StaticMatrixTransform) and isinstance(currtrans, StaticMatrixTransform)):
            combinedmat = np.dot(lasttrans.matrix, currtrans.matrix)
            newtrans[(-1)] = StaticMatrixTransform(combinedmat, lasttrans.fromsys, currtrans.tosys)
        else:
            newtrans.append(currtrans)
    return newtrans
