Skip to content

function gen_linear(T1, T2) generators

template <typename T1, typename T2, typename TF = ftype<std::common_type_t<T1, T2>>>
KFR_FUNCTION generator_linear<TF> gen_linear(T1 start, T2 step)

Returns template expression that generates values starting from the start and using the step as the increment between numbers.

\[ x_i = start + i \cdot step \]

Defined at base/generators.hpp:264