I am not sure this is the place to post such a question. I have a working .m file. I would like to pass it to an oct file. I have some major questions. Imagine I have some n-dime array G1(Chi,Chi,d) G2(Chi,Chi,d)
and I want to create a n-d array given by: theta=zeros(Chi,Chi,d,d);
for i=1:d for j=1:d theta(:,:,i,j)=G1(:,:,i)*G2(:,:,j);
endfor endfor
. I should be able to address the 2dim subarray of theta to copy inside the values of the product G1,G2...
Have you any clue to what the C++ sintax would be?