Skip to content

Class generator_linear

class generator_linear<T, VecWidth> base

template <typename T, size_t VecWidth = internal::generator_width<T>(1)>
struct generator_linear : public generator<T, VecWidth, generator_linear<T, VecWidth>> { … }

Generator that produces an arithmetic progression \(x_i = start + i \cdot step\) .

Template parameters
T Value type.
VecWidth Native vector width.

constructor generator_linear<T, VecWidth>(T, T)

generator_linear(T start, T step) noexcept

Constructs a linear generator.

Parameters
start First value to produce.
step Increment between successive values.

Fully qualified name: kfr::generator_linear<T, VecWidth>::generator_linear<T, VecWidth>(T, T)

function sync(T)

Reinitializes the generator so the next vector starts at start.

Parameters
start Starting value.

Fully qualified name: kfr::generator_linear<T, VecWidth>::sync(T)

function next()

Advances the generator state by one native vector width.

Fully qualified name: kfr::generator_linear<T, VecWidth>::next()

variable vstep

T vstep

Fully qualified name: kfr::generator_linear<T, VecWidth>::vstep

Fully qualified name: kfr::generator_linear<T, VecWidth>

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