Skip to content

num::kernel::rot

Defined in header <kernel/vector.hpp>

template <std::floating_point T>
void rot(T *x, T *y, T c, T s, idx n) noexcept;

Apply a Givens rotation (ROT): \((x_i, y_i) \leftarrow (c x_i + s y_i,\ c y_i - s x_i)\).