dot-compute_log_jacobian function

Internal function to compute the Jacobian of the transformation