Big array of variables product in CVX went wrong

Hi! Everyone! Here’s my code:

N=400;
F=100;
I=80;
c_f=rand(F,1)
cvx_begin
variables A_ifn(I,F,N) T_n(N)
expressions temp6(I,N) temp7(I,N);
aa=reshape(permute(A_ifn,[1 3 2]),I*N,F);
aaa=aa*c_f;


It goes wrong on ‘‘aaa=aa*c_f;’’, the error said that it will take forever to create a 95.4GB array so that matlab will not respond, but I need aaa . Using a for loop to create aaa is ok but it takes too long. I tried 2 big arrays product like that on matlab command window and it went well, so I don’t know why in CVX that happened, and how to solve it??? Thanks for your time.