Skip to content

Function gen_linear

function gen_linear(T1, T2) base

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)

Creates an expression that generates values starting from start and using step as the increment between successive numbers.

\\[ x_i = start + i \cdot step \\]
Template parameters
T1 Type of the starting value.
T2 Type of the step value.
Parameters
start First value to produce.
step Increment between successive values.
Returns
Linear generator expression.

Fully qualified name: kfr::gen_linear(T1, T2)

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.