Compute the sum of defined elements for each row and col in a 3D array

stack_sum(v)

Arguments

v

3D array that may contain NA values

Value

a matrix with the sum for each [row, col, ]