On Tuesday, May 24, 2016 at 3:43:20 AM UTC+3, Bob Carpenter wrote:
> > On May 23, 2016, at 4:04 AM, Aki Vehtari <
aki.v...@aalto.fi> wrote:
> >
> > On Monday, May 23, 2016 at 5:13:19 AM UTC+3, Bob Carpenter wrote:
> >> Devin doesn't know C++ yet and this one's hairy or Daniel would be
> >> done with already. All these higher-order tests are also what's
> >> bogging down the vectorization.
> >
> > And my guess is that with enough functions vectorized, the covariance matrix computation could be fully vectorized when written in Stan language so that the expression tree would be smallish and it would be quite fast even without internal C++ implementation of the covariance function...
>
> But the current vectorization of functions doesn't cut
> down expression tree size --- it's just a loop on the
> inside of the function instead of int he Stan language,
> which doesn't matter for efficiency.