| 1387 | } |
| 1388 | |
| 1389 | bool HighsSparseMatrix::debugPartitionOk(const int8_t* in_partition) const { |
| 1390 | assert(this->format_ == MatrixFormat::kRowwisePartitioned); |
| 1391 | bool ok = true; |
| 1392 | for (HighsInt iRow = 0; iRow < this->num_row_; iRow++) { |
| 1393 | for (HighsInt iEl = this->start_[iRow]; iEl < this->p_end_[iRow]; iEl++) { |
| 1394 | if (!in_partition[this->index_[iEl]]) { |
| 1395 | ok = false; |
| 1396 | break; |
| 1397 | } |
| 1398 | } |
| 1399 | if (!ok) break; |
| 1400 | for (HighsInt iEl = this->p_end_[iRow]; iEl < this->start_[iRow + 1]; |
| 1401 | iEl++) { |
| 1402 | if (in_partition[this->index_[iEl]]) { |
| 1403 | ok = false; |
| 1404 | break; |
| 1405 | } |
| 1406 | } |
| 1407 | if (!ok) break; |
| 1408 | } |
| 1409 | return ok; |
| 1410 | } |
| 1411 | |
| 1412 | void HighsSparseMatrix::priceByColumn(const bool quad_precision, |
| 1413 | HVector& result, const HVector& column, |
no outgoing calls
no test coverage detected