[ncl-talk] dot product question
M P
mzp3769 at gmail.com
Thu Aug 13 21:23:49 MDT 2020
Hello,
I have two arrays a(:,:,:), b(:,:,:), third dimension being vertical. I
want to obtain a dot product along the third index i.e.
c(i,j) = sum[a(i,j,k)*b(i,j,k)]_k=bottom,top.
I tried dim_sum_n but probably incorrectly and it produces wrong results.
Can you advise?
Thanks,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200813/5441802a/attachment.html>
More information about the ncl-talk
mailing list