1 SUBROUTINE SLASWPF( N, A, LDA, K1, K2, IPIV, INCX )
3 * -- LAPACK auxiliary routine (version 3.0) --
4 * Univ. of Tennessee, Univ. of California Berkeley, NAG Ltd.,
5 * Courant Institute, Argonne National Lab, and Rice University
8 * .. Scalar Arguments ..
9 INTEGER INCX, K1, K2, LDA, N
11 * .. Array Arguments ..
19 * SLASWP performs a series of row interchanges on the matrix A.
20 * One row interchange is initiated for each of rows K1 through K2 of A.
26 * The number of columns of the matrix A.
28 * A (input/output) REAL array, dimension (LDA,N)
29 * On entry, the matrix of column dimension N to which the row
30 * interchanges will be applied.
31 * On exit, the permuted matrix.
34 * The leading dimension of the array A.
37 * The first element of IPIV for which a row interchange will
41 * The last element of IPIV for which a row interchange will
44 * IPIV (input) INTEGER array, dimension (M*abs(INCX))
45 * The vector of pivot indices. Only the elements in positions
46 * K1 through K2 of IPIV are accessed.
47 * IPIV(K) = L implies rows K and L are to be interchanged.
49 * INCX (input) INTEGER
50 * The increment between successive values of IPIV. If IPIV
51 * is negative, the pivots are applied in reverse order.
57 * R. C. Whaley, Computer Science Dept., Univ. of Tenn., Knoxville, USA
59 * =====================================================================
62 INTEGER I, I1, I2, INC, IP, IX, IX0, J, K, N32
65 * .. Executable Statements ..
67 * Interchange row I with row IPIV(I) for each of rows K1 through K2.
74 ELSE IF( INCX.LT.0 ) THEN
75 IX0 = 1 + ( 1-K2 )*INCX
92 A( I, K ) = A( IP, K )
103 DO 50 I = I1, I2, INC
108 A( I, K ) = A( IP, K )