📅  最后修改于: 2022-03-11 15:01:04.940000             🧑  作者: Mango
# # 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)