add view::partial_sum and tests