I'm having this issue when running cvx because this constraint isn't convex?
pr*pr' is an outer quadratic form, which is an L by L matrix, whose off-diagonal elements are non-convex, because they are products of (different) variables. Hence the error message.
Do you want pr'*pr <= N ? That is convex and is allowed by CVX. I can’t tell you if that is what you should use, because I don’t know what optimization problem you wish to enter.
No, I actually wanted this pr*pr’ to get every diagonal element of the matrix less than 1, but I never found a suitable expression.
Maybe you want abs(pr) <= N1 ? That constrains the magnitude of every element of pr to be <= N1.

