<div dir="ltr">Hello,<div>I have two arrays a(:,:,:), b(:,:,:), third dimension being vertical.  I want to obtain a dot product along  the third index i.e. </div><div>c(i,j) = sum[a(i,j,k)*b(i,j,k)]_k=bottom,top.<br></div><div>I tried dim_sum_n but probably incorrectly and it produces wrong results.</div><div>Can you advise?</div><div>Thanks,</div><div>Mark</div></div>