def somme(l):
    """Takes an array l and returns the array made of the sums of all subarrays
    over the first dimension along."""
    res = l[0]
    for k in l[1:]:
        res += k
    return res
