Sum of all elements in an array
Posted by
William Nicolas on
Dec 29, 2014; 10:58am
URL: http://imagej.273.s1.nabble.com/Sum-of-all-elements-in-an-array-tp5011059.html
Hello ImageJ community,
I am reaching to you because it seems that there is no function or command implemented (as far as I know) that allows the summing up of all numerical elements contained in an array.
Let me explain my self with an example :
If I create an array :
A=newArray(1,2,3);
I would like to make operations on the 3 elements for instance summing or multiplications (1+2+3 or 1*2*3 etc.)
Do you know if there is a command I missed or if a function doing this is available ? thanks in advance !
Merry Xmas
William Nicolas
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html