def _max_1d(nums):
    """Find max in 1D array."""
    max_col = 0
    max_num = nums[0]
    for i in range(1, len(nums)):
        if nums[i] > max_num:
            max_col = i
            max_num = nums[i]
    return max_col, max_num