Julia sum

Sum all elements of an array

sum(A)

Sum elements of an array over the given dimensions.

sum(A::AbstractArray; dims)

Sum the results of calling function f on each element of an array over the given dimensions.

sum(f, A::AbstractArray; dims)
Content Protection by DMCA.com
Please Share