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

Method clear

highs/util/HighsSparseMatrix.cpp:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void HighsSparseMatrix::clear() {
54 this->num_col_ = 0;
55 this->num_row_ = 0;
56 this->start_.clear();
57 this->p_end_.clear();
58 this->index_.clear();
59 this->value_.clear();
60 this->format_ = MatrixFormat::kColwise;
61 this->start_.assign(1, 0);
62}
63
64void HighsSparseMatrix::exactResize() {
65 if (this->isColwise()) {

Callers 3

exactResizeMethod · 0.45
ensureColwiseMethod · 0.45
ensureRowwiseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected