📜  julia sum - 朱莉娅代码示例

📅  最后修改于: 2022-03-11 15:01:04.940000             🧑  作者: Mango

代码示例1
# # 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)