[changed subject, moved discussion to stan-dev]
[Sorry, fat-fingered the response out of HTML mailer again, which
is all I can access from where I'm at. I still can't
detect how I'm doing it, or I could be more careful.]
On June 21, 2013 04:14:19 PM EDT, Bob Carpenter <
ca...@alias-i.com> wrote:
>
>
>
>>> 1. Vectorize the implementation of the transforms.
>>> As is, they're just iterating, so a vector of positive
>>> parameters (as in that compound K-distribution formulation)
>>> is going to be dog slow.
>>>
>> By vectorize, do you mean checking to make sure the length of the
>> vectors are all the same or one and then use vector
>> operations to carryout the transform?
>
> I meant the efficient thing for derivatives -- define a new vari
> type (for reverse mode) for the Jacobian determinant. This should
> be easy for the simple lower and upper bound constraints, but more
> involved for ordered vectors, unit-length vectors, and simplexes,
> and for covariance and correlation matrices.
>
> The implementation should look something like that of the distributions,
> as there may be vector inputs, but there's only a single return.
> If you can do more efficient implementations for forward-mode, that'd
> be good, too. In fact, if you use OperandsAndPartials, you should be
> able to do both at the same time the way the distributions are being
> done now.
>
> - Bob