Returns an array with each element being the product of all of the elements of X along dimension I up to, and including, the corresponding element of X.
Array functions