I have 2D array[,]. I want to multiple column one elements by column two by column three all possible combinations and put it to into new 1D array Lets say each column contains 4 elements so the finial array which contains multiplications of combinations all columns array size 4*4*4=64 (all combinations ).
ans[0]=array[0,0]*array[0,1]*array[0,2]
ans[1]=array[0,0]*array[0,1]*array[1,2]
ans[2]=array[0,0]*array[0,1]*array[2,2]
.
.
.
ans[64]=.....
It will be really appreciate if you can help this for me Thanks.