1DLARZ(1) LAPACK routine (version 3.2) DLARZ(1)
2
3
4
6 DLARZ - applies a real elementary reflector H to a real M-by-N matrix
7 C, from either the left or the right
8
10 SUBROUTINE DLARZ( SIDE, M, N, L, V, INCV, TAU, C, LDC, WORK )
11
12 CHARACTER SIDE
13
14 INTEGER INCV, L, LDC, M, N
15
16 DOUBLE PRECISION TAU
17
18 DOUBLE PRECISION C( LDC, * ), V( * ), WORK( * )
19
21 DLARZ applies a real elementary reflector H to a real M-by-N matrix C,
22 from either the left or the right. H is represented in the form
23 H = I - tau * v * v'
24 where tau is a real scalar and v is a real vector.
25 If tau = 0, then H is taken to be the unit matrix.
26 H is a product of k elementary reflectors as returned by DTZRZF.
27
29 SIDE (input) CHARACTER*1
30 = 'L': form H * C
31 = 'R': form C * H
32
33 M (input) INTEGER
34 The number of rows of the matrix C.
35
36 N (input) INTEGER
37 The number of columns of the matrix C.
38
39 L (input) INTEGER
40 The number of entries of the vector V containing the meaningful
41 part of the Householder vectors. If SIDE = 'L', M >= L >= 0,
42 if SIDE = 'R', N >= L >= 0.
43
44 V (input) DOUBLE PRECISION array, dimension (1+(L-1)*abs(INCV))
45 The vector v in the representation of H as returned by DTZRZF.
46 V is not used if TAU = 0.
47
48 INCV (input) INTEGER
49 The increment between elements of v. INCV <> 0.
50
51 TAU (input) DOUBLE PRECISION
52 The value tau in the representation of H.
53
54 C (input/output) DOUBLE PRECISION array, dimension (LDC,N)
55 On entry, the M-by-N matrix C. On exit, C is overwritten by
56 the matrix H * C if SIDE = 'L', or C * H if SIDE = 'R'.
57
58 LDC (input) INTEGER
59 The leading dimension of the array C. LDC >= max(1,M).
60
61 WORK (workspace) DOUBLE PRECISION array, dimension
62 (N) if SIDE = 'L' or (M) if SIDE = 'R'
63
65 Based on contributions by
66 A. Petitet, Computer Science Dept., Univ. of Tenn., Knoxville, USA
67
68
69
70 LAPACK routine (version 3.2) November 2008 DLARZ(1)