function _cumsum (array) {
    try {
      return _cumsummap(array)
    } catch (err) {
      throw improveErrorMessage(err, name)
    }
  }
Recursively calculate the cumulative sum of an n-dimensional array
@param {Array} array
@return {number} cumsum
@private