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

Method sparseLoopStyle

highs/simplex/HSimplexNla.cpp:309–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309bool HSimplexNla::sparseLoopStyle(const HighsInt count, const HighsInt dim,
310 HighsInt& to_entry) const {
311 // Parameter to decide whether to use just the values in a HVector, or
312 // use the indices of their nonzeros
313 const bool use_indices = count >= 0 && count < kDensityForIndexing * dim;
314 if (use_indices) {
315 to_entry = count;
316 } else {
317 to_entry = dim;
318 }
319 return use_indices;
320}
321
322void HSimplexNla::reportArray(const std::string message, const HVector* vector,
323 const bool force) const {

Calls

no outgoing calls

Tested by

no test coverage detected