sum(A, 1) works, as does sum(A, (1, )). More generally, sum(A, dims::Integer...) works, as does as sum(A, (dims::Integer...), ).
-- John On Aug 27, 2014, at 2:44 PM, Andrew Dabrowski <[email protected]> wrote: > In the doc for the Standard library I see: > > sum(A, dims) > Sum elements of an array over the given dimensions. > > In exactly what form should "dims" be given? > > >
