This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

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

Order of the reflector, at least 1.

alpha : float

The leading entry of the vector to reflect.

x : ndarray

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

incx : int, optional

Stride through x. Default is 1.

overwrite_x : int, optional

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

Returns

alpha : float

The resulting beta.

x : ndarray

The reflector vector.

tau : float

The reflector scalar.

Aliases

  • scipy.linalg._flapack.slarfg