-
-
Notifications
You must be signed in to change notification settings - Fork 201
Closed
Description
Sebastian Weber on stan-users pointed out that the matrix returned by the Jacobian functional in math/rev/mat/functor/jacobian.hpp returns a tranposed result.
According to
https://en.wikipedia.org/wiki/Jacobian_matrix_and_determinant
if f: R^N -> R^M, then the Jacobian should be M x N
But it's currently N x M.
- fix Jacobian to be in line with standard definition
Reactions are currently unavailable