scipy.linalg.lapack.slarfg#

scipy.linalg.lapack.slarfg(n, alpha, x, incx=1, overwrite_x=0) = <flapack function slarfg>#

Generate an elementary reflector (LAPACK slarfg).

Produces the H with H @ [alpha, x] == [beta, 0], described by the returned alpha (which becomes beta), x and tau.

Parameters:
nint

Order of the reflector, at least 1.

alphafloat

The leading entry of the vector to reflect.

xndarray

The remaining entries, 1 + (n - 2) * abs(incx) of them.

incxint, optional

Stride through x. Default is 1.

overwrite_xint, optional

If nonzero, x may be overwritten in place. Default is 0.

Returns:
alphafloat

The resulting beta.

xndarray

The reflector vector.

taufloat

The reflector scalar.