Skip to content

Class generator_sin

class generator_sin<T, VecWidth> base

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

Generator that produces sine values \(x_i = \sin( start + i \cdot step )\) .

Template parameters
T Value type.
VecWidth Native vector width.

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

generator_sin(T start, T step)

Constructs a sine generator.

Parameters
start Starting phase.
step Phase increment between successive values.

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

function sync(T)

Reinitializes the generator so the next vector starts at phase start.

Parameters
start Starting phase.

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

function next()

Advances the rotation by one native vector width using the recurrence relation.

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

function get_value()

Returns the sine components of the current interleaved cos/sin state.

Returns
Vector of sine values.

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

variable step

T step

Fully qualified name: kfr::generator_sin<T, VecWidth>::step

variable alpha

T alpha

Fully qualified name: kfr::generator_sin<T, VecWidth>::alpha

variable beta

T beta

Fully qualified name: kfr::generator_sin<T, VecWidth>::beta

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

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