How to vectorize indexing of variable for pm.math.sum?

Oh, you’re right, that’s the meaning of Junpeng’s answer :sweat_smile:
That works, thanks Nicholas :ok_hand: