Yeah, it's not a great phrase. You can pretty easily submit doc fix PR's on GitHub if you've got better language in mind. Maybe call it summing "along" a dimension?
-- John On Aug 27, 2014, at 3:02 PM, Andrew Dabrowski <[email protected]> wrote: > OK, thanks. I find the phrase "over the given dimensions" ambiguous - isn't > it actually summing over the dimensions _not_ given? > > > On Wednesday, August 27, 2014 5:46:33 PM UTC-4, John Myles White wrote: > 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? >> >> >> >
