input:
two-dimensional array of type Double [][]
output:
one-dimensional array of type Double []
The operator sums-up either all rows or columns of the given array.