: s = sum(A, dim)

Compute sum along a dimension.

Package: ncarray