scipy.linalg.lapack.dlarfg#
- scipy.linalg.lapack.dlarfg(n, alpha, x, incx=1, overwrite_x=0) = <flapack function dlarfg>#
Generate an elementary reflector (LAPACK
dlarfg).Produces the
HwithH @ [alpha, x] == [beta, 0], described by the returned alpha (which becomesbeta), 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.