Multiple matrix variables definition

Don;t use a for loop.

See the answer by mcg at Semidefinite relaxations of quadratic constraint