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

Method computeDot

highs/util/HighsSparseMatrix.cpp:1604–1616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1602}
1603
1604double HighsSparseMatrix::computeDot(const std::vector<double>& array,
1605 const HighsInt use_col) const {
1606 assert(this->isColwise());
1607 double result = 0;
1608 if (use_col < this->num_col_) {
1609 for (HighsInt iEl = this->start_[use_col]; iEl < this->start_[use_col + 1];
1610 iEl++)
1611 result += array[this->index_[iEl]] * this->value_[iEl];
1612 } else {
1613 result = array[use_col - this->num_col_];
1614 }
1615 return result;
1616}
1617
1618void HighsSparseMatrix::collectAj(HVector& column, const HighsInt use_col,
1619 const double multiplier) const {

Callers 6

createFreemoveMethod · 0.45
minorUpdateDualMethod · 0.45
minorUpdatePrimalMethod · 0.45
minorUpdateRowsMethod · 0.45
testSolveFunction · 0.45
testSolveDenseFunction · 0.45

Calls 1

isColwiseMethod · 0.95

Tested by 2

testSolveFunction · 0.36
testSolveDenseFunction · 0.36