Closed newville closed 9 years ago
The solution in PR #7 works only for row-based Jacobians, not with col_deriv=1. This PR checks col_deriv in the wrapped jacobian, and reshapes the internal-to-external gradient appropriately.
col_deriv=1
col_deriv
An example script is at https://gist.github.com/newville/09747a8d09ad71efb1ed
Looks good @newville, thanks for the fix.
The solution in PR #7 works only for row-based Jacobians, not with
col_deriv=1
. This PR checkscol_deriv
in the wrapped jacobian, and reshapes the internal-to-external gradient appropriately.An example script is at https://gist.github.com/newville/09747a8d09ad71efb1ed