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

Method setFormat

highs/util/HighsSparseMatrix.cpp:111–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void HighsSparseMatrix::setFormat(const MatrixFormat desired_format) {
112 assert(this->formatOk());
113 if (desired_format == MatrixFormat::kColwise) {
114 this->ensureColwise();
115 } else {
116 this->ensureRowwise();
117 }
118 assert(this->format_ == desired_format);
119}
120
121void HighsSparseMatrix::ensureColwise() {
122 assert(this->formatOk());

Callers

nothing calls this directly

Calls 3

formatOkMethod · 0.95
ensureColwiseMethod · 0.95
ensureRowwiseMethod · 0.95

Tested by

no test coverage detected