I have a problem that involves me wrapping a while loop around a bit of code that I believe can be vectorized efficiently. However, at each step, my stopping condition relies on the value at that stage. Consider this example as a representational model of my problem:I have a problem that involves me wrapping a wh