This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / linalg / _flapack / slartg

lapack_function

scipy.linalg._flapack:slartg

source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so

Signature

def slartg(f, g)

Summary

Generate a Givens rotation (LAPACK slartg).

Extended Summary

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

Parameters

f : float

First component.

g : float

Second component, the one rotated to zero.

Returns

cs : float

The cosine. Real for every flavor.

sn : float

The sine.

r : float

The resulting first component.

Aliases

  • scipy.linalg._flapack.slartg