File tree Expand file tree Collapse file tree
src/atoms/bivariate_full_dom Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -461,9 +461,7 @@ static void eval_wsum_hess_chain_rule(expr *node, const double *w)
461461 BTA_matrices_fill_values (mnode -> BJg , f -> jacobian , mnode -> C );
462462 transpose_matrices_fill_values (mnode -> C , mnode -> CT );
463463
464- /* H = C + C^T + H_f + H_g, adding each term right after it is evaluated:
465- if f and g share a subexpression, evaluating g may overwrite f's
466- hessian values */
464+ /* H = C + C^T + H_f + H_g, adding each term right after it is evaluated */
467465 sum_n_matrices_fill_zero (node -> wsum_hess );
468466 sum_n_matrices_fill_add (mnode -> C , 0 , node -> wsum_hess );
469467 sum_n_matrices_fill_add (mnode -> CT , 1 , node -> wsum_hess );
Original file line number Diff line number Diff line change @@ -191,8 +191,7 @@ static void eval_wsum_hess_impl(expr *node, const double *w)
191191
192192 // ---------------------------------------------------------------
193193 // compute H = C + C^T + term2 + term3, adding each term right
194- // after it is evaluated: if x and y share a subexpression,
195- // evaluating y may overwrite x's hessian values
194+ // after it is evaluated
196195 // ---------------------------------------------------------------
197196 sum_n_matrices_fill_zero (node -> wsum_hess );
198197 sum_n_matrices_fill_add (mul_node -> C , 0 , node -> wsum_hess );
You can’t perform that action at this time.
0 commit comments