| 80 | |
| 81 | template<class View> |
| 82 | void |
| 83 | eliminate_p(ModEventDelta med, ViewArray<View>& x, FloatVal& c) { |
| 84 | int n = x.size(); |
| 85 | |
| 86 | if (FloatView::me(med) == ME_FLOAT_VAL) { |
| 87 | for (int i = n; i--; ) { |
| 88 | if (x[i].assigned()) { |
| 89 | c -= x[i].val(); x[i] = x[--n]; |
| 90 | } |
| 91 | } |
| 92 | x.size(n); |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | template<class View> |
| 97 | void |