From 3c686beb362b7e5a0c6a71abd032e9552468d2ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernd=20G=C3=A4rtner?= Date: Thu, 9 Oct 2008 10:06:21 +0000 Subject: [PATCH] some more operator[]-related ad-hoc fixes for Polytope_distance_d --- QP_solver/include/CGAL/QP_solver/QP_solver.h | 2 +- QP_solver/include/CGAL/QP_solver/QP_solver_impl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/QP_solver/include/CGAL/QP_solver/QP_solver.h b/QP_solver/include/CGAL/QP_solver/QP_solver.h index 984b5944469..6f65a8b1bef 100644 --- a/QP_solver/include/CGAL/QP_solver/QP_solver.h +++ b/QP_solver/include/CGAL/QP_solver/QP_solver.h @@ -1722,7 +1722,7 @@ ratio_test_2__p( Tag_false) i_it != B_O.end(); ++i_it, ++v_it ) { *v_it = ( sign ? - (*(qp_A+ *i_it))[ row] : - (*(qp_A + *i_it))[ row]); + *((*(qp_A+ *i_it))+ row) : - (*((*(qp_A + *i_it))+ row))); } // compute ( p_l | p_x_O )^T = M_B^{-1} * ( 0 | A_{S_j,B_O} )^T diff --git a/QP_solver/include/CGAL/QP_solver/QP_solver_impl.h b/QP_solver/include/CGAL/QP_solver/QP_solver_impl.h index 066030c28d5..3dadc938636 100644 --- a/QP_solver/include/CGAL/QP_solver/QP_solver_impl.h +++ b/QP_solver/include/CGAL/QP_solver/QP_solver_impl.h @@ -2824,7 +2824,7 @@ check_basis_inverse( Tag_false) row = ( has_ineq ? C[ col] : col); v_it = tmp_x.begin(); for ( i_it = B_O.begin(); i_it != B_O.end(); ++i_it, ++v_it) { - *v_it = ( *i_it < qp_n ? (*(qp_A+ *i_it))[ row] : // original + *v_it = ( *i_it < qp_n ? *((*(qp_A+ *i_it))+ row) : // original art_A[ *i_it - qp_n].first != (int)row ? et0 :// artific. ( art_A[ *i_it - qp_n].second ? -et1 : et1)); }