mirror of https://github.com/CGAL/cgal
some more operator[]-related ad-hoc fixes for Polytope_distance_d
This commit is contained in:
parent
f6e5b42822
commit
3c686beb36
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue