Return vector is column sums of given matrix. r = sum(sum(matrix)) gives the total sum of elements of the matrix.