bundles / scipy latest / scipy / linalg / _flapack / zlartg
lapack_function
scipy.linalg._flapack:zlartg
source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so
Signature
def zlartg(f, g)Summary
Generate a Givens rotation (LAPACK zlartg).
Extended Summary
Produces cs and sn with [[cs, sn], [-conj(sn), cs]] @ [f, g] == [r, 0].
Parameters
f: complexFirst component.
g: complexSecond component, the one rotated to zero.
Returns
cs: floatThe cosine. Real for every flavor.
sn: complexThe sine.
r: complexThe resulting first component.
Aliases
scipy.linalg._flapack.zlartg