I have an objective function that depends on a sum of outer products. If I could use Numpy functions, I would write this as:
A = np.ones(m, n)
U = Variable(m, n)
objective = np.trace(sum([np.outer(A[i,:], U[i,:]) for i in range(m)]))
Of course np.outer doesn't work when U is a variable. Is there a cvxpy affine function that would implement this?