MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / debugPartitionOk

Method debugPartitionOk

highs/util/HighsSparseMatrix.cpp:1389–1410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1387}
1388
1389bool 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
1412void HighsSparseMatrix::priceByColumn(const bool quad_precision,
1413 HVector& result, const HVector& column,

Callers 3

rebuildMethod · 0.80
rebuildMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected