Computing the correlation coefficient between two multi-dimensional arrays Computing the correlation coefficient between two multi-dimensional arrays arrays arrays