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

Function getNorm2

highs/util/HighsUtils.cpp:289–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289double getNorm2(const std::vector<double>& values) {
290 double sum = 0;
291 HighsInt values_size = values.size();
292 for (HighsInt i = 0; i < values_size; i++) sum += values[i] * values[i];
293 return sum;
294}
295
296bool highs_isInfinity(double val) {
297 if (val >= kHighsInf) return true;

Callers 4

updateFunction · 0.85
fillDetailsFunction · 0.85
solveSubproblemICAFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected