| 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]); |