I would like to find the largest element in a portion of a longer vector. I would also like to perform this calculation for multiple \'pieces\' of this larger vector. The f
You might be interested in the cummax function.
cummax