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

Function min

source/matplot/util/common.cpp:174–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172 }
173
174 double min(const std::vector<double> &x) {
175 if (x.empty()) {
176 return std::numeric_limits<double>::max();
177 } else {
178 return *std::min_element(x.begin(), x.end());
179 }
180 }
181
182 double min(const std::vector<std::vector<double>> &x) {
183 double m = min(x[0]);

Callers 5

transformFunction · 0.70
minmaxFunction · 0.70
peaksFunction · 0.70
imvignetteFunction · 0.70
calcticksFunction · 0.70

Calls 5

emptyMethod · 0.80
beginMethod · 0.80
endMethod · 0.80
maxFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected