@classmethod
def transpose(cls, *vectors):
    '\n        Transpose a matrix represented as an iterable of homogeneous LabeledVectors.\n        '
    if (len(vectors) == 0):
        return LabeledVector()
    if (not all((isinstance(v, LabeledVector) for v in vectors))):
        raise ValueError(('All items must be of type LabeledVector, got [%s]' % ','.join((i.__class__.__name__ for i in vectors))))
    T = OrderedDict()
    for v in vectors:
        for (l, i) in zip(v.labels, v):
            T.setdefault(l, []).append(i)
    return tuple(((l, Vector(*i)) for (l, i) in T.items()))
Transpose a matrix represented as an iterable of homogeneous LabeledVectors.
@classmethod
def transpose(cls, *vectors):
    '\n        \n        '
    if (len(vectors) == 0):
        return LabeledVector()
    if (not all((isinstance(v, LabeledVector) for v in vectors))):
        raise ValueError(('All items must be of type LabeledVector, got [%s]' % ','.join((i.__class__.__name__ for i in vectors))))
    T = OrderedDict()
    for v in vectors:
        for (l, i) in zip(v.labels, v):
            T.setdefault(l, []).append(i)
    return tuple(((l, Vector(*i)) for (l, i) in T.items()))