Skip to content

Commit ec1b77a

Browse files
committed
feat: add aggregate argument to cppad_trace_graph_objective function
1 parent cdee6f1 commit ec1b77a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cppad_interface_ext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,6 @@ NB_MODULE(cppad_interface_ext, m)
183183
.def_ro("hessian", &CppADAutodiffGraph::hessian_graph);
184184

185185
m.def("cppad_trace_graph_constraints", cppad_trace_graph_constraints);
186-
m.def("cppad_trace_graph_objective", cppad_trace_graph_objective);
186+
m.def("cppad_trace_graph_objective", cppad_trace_graph_objective, nb::arg("graph"), nb::arg("aggregate") = true);
187187
m.def("cppad_autodiff", &cppad_autodiff);
188188
}

0 commit comments

Comments
 (0)