Ncarray Toolkit - @BaseArray/prod


P = prod(A, dims)

Compute the product of all elements along dimension DIM.