Assume I have a four-dimensional matrix A(:, :, :, :). I want to update the matrix by performing some processing on it. The pseudo codes are presented as follows:
for ii = 1:m for jj = 1:n A = myFunction(A(:,:,jj,ii)) end end To implement the for-loop processing in Python:
for ii in range(m): for jj in range(n): A = myFunction(A[:,:,jj,ii]) Is that correct?
kkandll.