Skip to content

Commit 7fa8965

Browse files
committed
Remove fill nan
1 parent ebc420d commit 7fa8965

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

cpp/src/linear_programming/solve.cu

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -927,17 +927,6 @@ optimization_problem_solution_t<i_t, f_t> solve_lp(
927927
settings.dual_postsolve,
928928
op_problem.get_handle_ptr()->get_stream());
929929

930-
if (!settings.dual_postsolve) {
931-
thrust::fill(rmm::exec_policy(op_problem.get_handle_ptr()->get_stream()),
932-
dual_solution.data(),
933-
dual_solution.data() + dual_solution.size(),
934-
std::numeric_limits<f_t>::signaling_NaN());
935-
thrust::fill(rmm::exec_policy(op_problem.get_handle_ptr()->get_stream()),
936-
reduced_costs.data(),
937-
reduced_costs.data() + reduced_costs.size(),
938-
std::numeric_limits<f_t>::signaling_NaN());
939-
}
940-
941930
auto full_stats = solution.get_additional_termination_information();
942931

943932
// Create a new solution with the full problem solution

0 commit comments

Comments
 (0)