scipy.linalg.lapack.clartg#

scipy.linalg.lapack.clartg(f, g) = <flapack function clartg>#

Generate a Givens rotation (LAPACK clartg).

Produces cs and sn with [[cs, sn], [-conj(sn), cs]] @ [f, g] == [r, 0].

Parameters:
fcomplex

First component.

gcomplex

Second component, the one rotated to zero.

Returns:
csfloat

The cosine. Real for every flavor.

sncomplex

The sine.

rcomplex

The resulting first component.