| 345 | } |
| 346 | |
| 347 | QpVector Basis::ftran(const QpVector& rhs, bool buffer, HighsInt q) { |
| 348 | HVector rhs_hvec = vec2hvec(rhs); |
| 349 | basisfactor.ftranCall(rhs_hvec, 1.0); |
| 350 | if (buffer) { |
| 351 | col_aq.copy(&rhs_hvec); |
| 352 | for (HighsInt i = 0; i < rhs_hvec.packCount; i++) { |
| 353 | col_aq.packIndex[i] = rhs_hvec.packIndex[i]; |
| 354 | col_aq.packValue[i] = rhs_hvec.packValue[i]; |
| 355 | } |
| 356 | col_aq.packCount = rhs_hvec.packCount; |
| 357 | col_aq.packFlag = rhs_hvec.packFlag; |
| 358 | buffered_q = q; |
| 359 | } |
| 360 | return hvec2vec(rhs_hvec); |
| 361 | } |
| 362 | |
| 363 | QpVector Basis::recomputex(const Instance& inst) { |
| 364 | assert((HighsInt)active_constraint_index.size() == inst.num_var); |
no test coverage detected