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

Method exactResize

highs/util/HighsSparseMatrix.cpp:64–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void HighsSparseMatrix::exactResize() {
65 if (this->isColwise()) {
66 this->start_.resize(this->num_col_ + 1);
67 } else {
68 this->start_.resize(this->num_row_ + 1);
69 }
70 const HighsInt num_nz = this->isColwise() ? this->start_[this->num_col_]
71 : this->start_[this->num_row_];
72 if (this->format_ == MatrixFormat::kRowwisePartitioned) {
73 this->p_end_.resize(this->num_row_);
74 } else {
75 assert((int)this->p_end_.size() == 0);
76 this->p_end_.clear();
77 }
78 this->index_.resize(num_nz);
79 this->value_.resize(num_nz);
80}
81
82bool HighsSparseMatrix::isRowwise() const {
83 return this->format_ == MatrixFormat::kRowwise ||

Callers

nothing calls this directly

Calls 4

isColwiseMethod · 0.95
resizeMethod · 0.45
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected