1SLAPMT(1)           LAPACK auxiliary routine (version 3.1)           SLAPMT(1)
2
3
4

NAME

6       SLAPMT  - the columns of the M by N matrix X as specified by the permu‐
7       tation K(1),K(2),...,K(N) of the integers 1,...,N
8

SYNOPSIS

10       SUBROUTINE SLAPMT( FORWRD, M, N, X, LDX, K )
11
12           LOGICAL        FORWRD
13
14           INTEGER        LDX, M, N
15
16           INTEGER        K( * )
17
18           REAL           X( LDX, * )
19

PURPOSE

21       SLAPMT rearranges the columns of the M by N matrix X  as  specified  by
22       the  permutation K(1),K(2),...,K(N) of the integers 1,...,N.  If FORWRD
23       = .TRUE.,  forward permutation:
24
25            X(*,K(J)) is moved X(*,J) for J = 1,2,...,N.
26
27       If FORWRD = .FALSE., backward permutation:
28
29            X(*,J) is moved to X(*,K(J)) for J = 1,2,...,N.
30
31

ARGUMENTS

33       FORWRD  (input) LOGICAL
34               = .TRUE., forward permutation = .FALSE., backward permutation
35
36       M       (input) INTEGER
37               The number of rows of the matrix X. M >= 0.
38
39       N       (input) INTEGER
40               The number of columns of the matrix X. N >= 0.
41
42       X       (input/output) REAL array, dimension (LDX,N)
43               On entry, the M by N matrix X.  On exit, X  contains  the  per‐
44               muted matrix X.
45
46       LDX     (input) INTEGER
47               The leading dimension of the array X, LDX >= MAX(1,M).
48
49       K       (input/output) INTEGER array, dimension (N)
50               On  entry,  K  contains  the  permutation  vector. K is used as
51               internal workspace, but reset to its original value on output.
52
53
54
55 LAPACK auxiliary routine (versionNo3v.e1m)ber 2006                       SLAPMT(1)
Impressum