sum

fun <T : Number, D : Dimension> MultiArray<T, D>.sum(): T

Returns the sum of all elements in the collection.