1SLAQP2(1) LAPACK auxiliary routine (version 3.2) SLAQP2(1)
2
3
4
6 SLAQP2 - computes a QR factorization with column pivoting of the block
7 A(OFFSET+1:M,1:N)
8
10 SUBROUTINE SLAQP2( M, N, OFFSET, A, LDA, JPVT, TAU, VN1, VN2, WORK )
11
12 INTEGER LDA, M, N, OFFSET
13
14 INTEGER JPVT( * )
15
16 REAL A( LDA, * ), TAU( * ), VN1( * ), VN2( * ), WORK( * )
17
19 SLAQP2 computes a QR factorization with column pivoting of the block
20 A(OFFSET+1:M,1:N). The block A(1:OFFSET,1:N) is accordingly pivoted,
21 but not factorized.
22
24 M (input) INTEGER
25 The number of rows of the matrix A. M >= 0.
26
27 N (input) INTEGER
28 The number of columns of the matrix A. N >= 0.
29
30 OFFSET (input) INTEGER
31 The number of rows of the matrix A that must be pivoted but no
32 factorized. OFFSET >= 0.
33
34 A (input/output) REAL array, dimension (LDA,N)
35 On entry, the M-by-N matrix A. On exit, the upper triangle of
36 block A(OFFSET+1:M,1:N) is the triangular factor obtained; the
37 elements in block A(OFFSET+1:M,1:N) below the diagonal,
38 together with the array TAU, represent the orthogonal matrix Q
39 as a product of elementary reflectors. Block A(1:OFFSET,1:N)
40 has been accordingly pivoted, but no factorized.
41
42 LDA (input) INTEGER
43 The leading dimension of the array A. LDA >= max(1,M).
44
45 JPVT (input/output) INTEGER array, dimension (N)
46 On entry, if JPVT(i) .ne. 0, the i-th column of A is permuted
47 to the front of A*P (a leading column); if JPVT(i) = 0, the i-
48 th column of A is a free column. On exit, if JPVT(i) = k, then
49 the i-th column of A*P was the k-th column of A.
50
51 TAU (output) REAL array, dimension (min(M,N))
52 The scalar factors of the elementary reflectors.
53
54 VN1 (input/output) REAL array, dimension (N)
55 The vector with the partial column norms.
56
57 VN2 (input/output) REAL array, dimension (N)
58 The vector with the exact column norms.
59
60 WORK (workspace) REAL array, dimension (N)
61
63 Based on contributions by
64 G. Quintana-Orti, Depto. de Informatica, Universidad Jaime I, Spain
65 X. Sun, Computer Science Dept., Duke University, USA
66 Partial column norm updating strategy modified by
67 Z. Drmac and Z. Bujanovic, Dept. of Mathematics,
68 University of Zagreb, Croatia.
69 June 2006.
70 For more details see LAPACK Working Note 176.
71
72
73
74 LAPACK auxiliary routine (versionNo3v.e2m)ber 2008 SLAQP2(1)