Nonconvex and Matrix Variables

Just reshape them to/from vectors passing them as optimization parameters to/from Nonconvex.