Skip to content

Commit f9e9713

Browse files
eminyousknmetab0t
authored andcommitted
Avoid using internal bool in sparsity computation.
1 parent ec72f92 commit f9e9713

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/pyoptinterface/knitro_model.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ struct CallbackEvaluator
168168
{
169169
jac_pattern_in.set(i, i, i);
170170
}
171-
fun.for_jac_sparsity(jac_pattern_in, false, false, true, jac_pattern_);
171+
fun.for_jac_sparsity(jac_pattern_in, false, false, false, jac_pattern_);
172172
std::vector<bool> select_rows(ny, true);
173-
fun.rev_hes_sparsity(select_rows, false, true, hess_pattern_);
173+
fun.rev_hes_sparsity(select_rows, false, false, hess_pattern_);
174174
auto &hess_rows = hess_pattern_.row();
175175
auto &hess_cols = hess_pattern_.col();
176176
for (size_t k = 0; k < hess_pattern_.nnz(); k++)

0 commit comments

Comments
 (0)