I have vectorized too many nested Stan loops to agree with that ![]()
For some loop heavy models, the memory traffic for the AD graph dominates calculation, so scan is a good api choice imo.
I have vectorized too many nested Stan loops to agree with that ![]()
For some loop heavy models, the memory traffic for the AD graph dominates calculation, so scan is a good api choice imo.