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

Function getRandomValues

check/TestSort.cpp:15–23  ·  view source on GitHub ↗

No commas in test case name.

Source from the content-addressed store, hash-verified

13
14// No commas in test case name.
15void getRandomValues(const HighsInt num_values, vector<double>& values,
16 vector<HighsInt>& indices) {
17 // Set up a vector of random number and their corresponding indices
18 HighsRandom random;
19 for (HighsInt ix = 0; ix < num_values; ix++) {
20 values[1 + ix] = random.fraction();
21 indices[1 + ix] = ix;
22 }
23}
24
25void doFullSort(const HighsInt num_values, vector<double>& values,
26 vector<HighsInt>& indices) {

Callers 1

TestSort.cppFile · 0.85

Calls 1

fractionMethod · 0.80

Tested by

no test coverage detected