bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / linalg / _flapack / slarfg
lapack_function
scipy.linalg._flapack:slarfg
source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so
Signature
def slarfg(n, alpha, x, incx = 1, overwrite_x = 0)Summary
Generate an elementary reflector (LAPACK slarfg).
Extended Summary
Produces the H with H @ [alpha, x] == [beta, 0], described by the returned alpha (which becomes beta), x and tau.
Parameters
n: intOrder of the reflector, at least 1.
alpha: floatThe leading entry of the vector to reflect.
x: ndarrayThe remaining entries,
1 + (n - 2) * abs(incx)of them.incx: int, optionalStride through
x. Default is 1.overwrite_x: int, optionalIf nonzero,
xmay be overwritten in place. Default is 0.
Returns
alpha: floatThe resulting
beta.x: ndarrayThe reflector vector.
tau: floatThe reflector scalar.
Aliases
scipy.linalg._flapack.slarfg