MCPcopy Create free account
hub / github.com/numpy/numpy / dlarfg_

Function dlarfg_

numpy/linalg/lapack_lite/f2c_d_lapack.c:22337–22476  ·  view source on GitHub ↗

Subroutine */

Source from the content-addressed store, hash-verified

22335} /* dlarfb_ */
22336
22337/* Subroutine */ int dlarfg_(integer *n, doublereal *alpha, doublereal *x,
22338 integer *incx, doublereal *tau)
22339{
22340 /* System generated locals */
22341 integer i__1;
22342 doublereal d__1;
22343
22344 /* Local variables */
22345 static integer j, knt;
22346 static doublereal beta;
22347 extern doublereal dnrm2_(integer *, doublereal *, integer *);
22348 extern /* Subroutine */ int dscal_(integer *, doublereal *, doublereal *,
22349 integer *);
22350 static doublereal xnorm;
22351
22352 static doublereal safmin, rsafmn;
22353
22354
22355/*
22356 -- LAPACK auxiliary routine (version 3.2) --
22357 -- LAPACK is a software package provided by Univ. of Tennessee, --
22358 -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
22359 November 2006
22360
22361
22362 Purpose
22363 =======
22364
22365 DLARFG generates a real elementary reflector H of order n, such
22366 that
22367
22368 H * ( alpha ) = ( beta ), H' * H = I.
22369 ( x ) ( 0 )
22370
22371 where alpha and beta are scalars, and x is an (n-1)-element real
22372 vector. H is represented in the form
22373
22374 H = I - tau * ( 1 ) * ( 1 v' ) ,
22375 ( v )
22376
22377 where tau is a real scalar and v is a real (n-1)-element
22378 vector.
22379
22380 If the elements of x are all zero, then tau = 0 and H is taken to be
22381 the unit matrix.
22382
22383 Otherwise 1 <= tau <= 2.
22384
22385 Arguments
22386 =========
22387
22388 N (input) INTEGER
22389 The order of the elementary reflector.
22390
22391 ALPHA (input/output) DOUBLE PRECISION
22392 On entry, the value alpha.
22393 On exit, it is overwritten with the value beta.
22394

Callers 13

dgebd2_Function · 0.85
dgehd2_Function · 0.85
dgelq2_Function · 0.85
dgeqr2_Function · 0.85
dlabrd_Function · 0.85
dlaexc_Function · 0.85
dlahqr_Function · 0.85
dlahr2_Function · 0.85
dlaqr2_Function · 0.85
dlaqr3_Function · 0.85
dlaqr5_Function · 0.85
dlatrd_Function · 0.85

Calls 4

dnrm2_Function · 0.85
dlapy2_Function · 0.85
absFunction · 0.85
dscal_Function · 0.85

Tested by

no test coverage detected