| 1602 | } |
| 1603 | |
| 1604 | double 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 | |
| 1618 | void HighsSparseMatrix::collectAj(HVector& column, const HighsInt use_col, |
| 1619 | const double multiplier) const { |