def devectorize(vec):
    """Create a matrix from a symmetric vectorization."""
    from ..expressions.vectorizations import SymmetricVectorization
    v = vec.size[0]
    n = int((1 + 8 * v) ** 0.5 - 1) // 2
    return SymmetricVectorization((n, n)).devectorize(vec)
