| 109 | } |
| 110 | |
| 111 | void 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 | |
| 121 | void HighsSparseMatrix::ensureColwise() { |
| 122 | assert(this->formatOk()); |
nothing calls this directly
no test coverage detected