MCPcopy Create free account
hub / github.com/alandefreitas/matplotplusplus / max

Function max

source/matplot/util/common.cpp:166–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164 }
165
166 double max(const std::vector<double> &x) {
167 if (x.empty()) {
168 return -std::numeric_limits<double>::max();
169 } else {
170 return *std::max_element(x.begin(), x.end());
171 }
172 }
173
174 double min(const std::vector<double> &x) {
175 if (x.empty()) {

Callers 4

minFunction · 0.70
minmaxFunction · 0.70
waitFunction · 0.70
calcticksFunction · 0.70

Calls 4

emptyMethod · 0.80
beginMethod · 0.80
endMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected