def Symmetric(n, name=None):
 var = SymmetricUpperTri(n, name)
 fill_mat = Constant(upper_tri_to_full(n))
 return cvxtypes.reshape()((fill_mat * var), int(n), int(n))

def Symmetric ( n , name = None ) : var = SymmetricUpperTri ( n , name ) fill_mat = Constant ( upper_tri_to_full ( n ) ) return cvxtypes . reshape ( ) ( ( fill_mat * var ) , int ( n ) , int ( n ) )
an expression representing a symmetric matrix .