* @brief Populate the array with a range of values. This is mostly for testing * purposes. * @param input The array to populate. * @param N The number of elements in the array. * @param start The starting value. * @param step The step size. */
| 148 | * @param step The step size. |
| 149 | */ |
| 150 | void range(float *input, size_t N, float start = 0.0, float step = 1.0) { |
| 151 | // TODO(avh): currently unused - check |
| 152 | float curr = start; |
| 153 | for (size_t i = 0; i < N; i++) { |
| 154 | input[i] = curr; |
| 155 | curr += step; |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | /** |
| 160 | * @brief Overload of `range()` for std::array. |
no outgoing calls