| 234 | */ |
| 235 | template <typename T> |
| 236 | inline void ArrayBounds(const T *in, unsigned int size, T &min, T &max) { |
| 237 | MinMaxChooser<T>()(min, max); |
| 238 | for (unsigned int i = 0; i < size; ++i) { |
| 239 | min = std::min(in[i], min); |
| 240 | max = std::max(in[i], max); |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | // ------------------------------------------------------------------------------- |
| 245 | /** Little helper function to calculate the quadratic difference |
no test coverage detected