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

Function clarf_

numpy/linalg/lapack_lite/f2c_c_lapack.c:18194–18364  ·  view source on GitHub ↗

Subroutine */

Source from the content-addressed store, hash-verified

18192} /* clarcm_ */
18193
18194/* Subroutine */ int clarf_(char *side, integer *m, integer *n, complex *v,
18195 integer *incv, complex *tau, complex *c__, integer *ldc, complex *
18196 work)
18197{
18198 /* System generated locals */
18199 integer c_dim1, c_offset, i__1;
18200 complex q__1;
18201
18202 /* Local variables */
18203 static integer i__;
18204 static logical applyleft;
18205 extern /* Subroutine */ int cgerc_(integer *, integer *, complex *,
18206 complex *, integer *, complex *, integer *, complex *, integer *),
18207 cgemv_(char *, integer *, integer *, complex *, complex *,
18208 integer *, complex *, integer *, complex *, complex *, integer *);
18209 extern logical lsame_(char *, char *);
18210 static integer lastc, lastv;
18211 extern integer ilaclc_(integer *, integer *, complex *, integer *),
18212 ilaclr_(integer *, integer *, complex *, integer *);
18213
18214
18215/*
18216 -- LAPACK auxiliary routine (version 3.2) --
18217 -- LAPACK is a software package provided by Univ. of Tennessee, --
18218 -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
18219 November 2006
18220
18221
18222 Purpose
18223 =======
18224
18225 CLARF applies a complex elementary reflector H to a complex M-by-N
18226 matrix C, from either the left or the right. H is represented in the
18227 form
18228
18229 H = I - tau * v * v'
18230
18231 where tau is a complex scalar and v is a complex vector.
18232
18233 If tau = 0, then H is taken to be the unit matrix.
18234
18235 To apply H' (the conjugate transpose of H), supply conjg(tau) instead
18236 tau.
18237
18238 Arguments
18239 =========
18240
18241 SIDE (input) CHARACTER*1
18242 = 'L': form H * C
18243 = 'R': form C * H
18244
18245 M (input) INTEGER
18246 The number of rows of the matrix C.
18247
18248 N (input) INTEGER
18249 The number of columns of the matrix C.
18250
18251 V (input) COMPLEX array, dimension

Callers 11

cgebd2_Function · 0.85
cgehd2_Function · 0.85
cgelq2_Function · 0.85
cgeqr2_Function · 0.85
claqr2_Function · 0.85
claqr3_Function · 0.85
cung2r_Function · 0.85
cungl2_Function · 0.85
cunm2l_Function · 0.85
cunm2r_Function · 0.85
cunml2_Function · 0.85

Calls 5

lsame_Function · 0.85
ilaclc_Function · 0.85
ilaclr_Function · 0.85
cgemv_Function · 0.85
cgerc_Function · 0.85

Tested by

no test coverage detected