def _vecs_to_tuple(vecs, dims):
    """
        Convert a list of vectors into a matrix of them, stacked vertically, with the given number of dimensions.
        A One Vector is prepended, to allow determinant calculation
    :param vecs: Vectors to convert to a matrix
    :param dims: Number of dimensions of the vectors
    :return: Matrix made from vectors
    """
    return (tuple(1 for _ in range(vecs[0].dimensions)),) + tuple(x.to_tuple(dims) for x in vecs)