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;

Applies Givens plane rotation in-place:

\[ \begin{bmatrix} x_i \\ y_i \end{bmatrix} \leftarrow \begin{bmatrix} c & s \\ -s & c \end{bmatrix} \begin{bmatrix} x_i \\ y_i \end{bmatrix} \]