scipy.linalg.lapack.zlarfg#

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

Generate an elementary reflector (LAPACK zlarfg).

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.

alphacomplex

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:
alphacomplex

The resulting beta.

xndarray

The reflector vector.

taucomplex

The reflector scalar.