1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
---
:name: dlapmt
:md5sum: 7e42e3f49a708615b1f14ee2a2897663
:category: :subroutine
:arguments:
- forwrd:
:type: logical
:intent: input
- m:
:type: integer
:intent: input
- n:
:type: integer
:intent: input
- x:
:type: doublereal
:intent: input/output
:dims:
- ldx
- n
- ldx:
:type: integer
:intent: input
- k:
:type: integer
:intent: input/output
:dims:
- n
:substitutions: {}
:fortran_help: " SUBROUTINE DLAPMT( FORWRD, M, N, X, LDX, K )\n\n\
* Purpose\n\
* =======\n\
*\n\
* DLAPMT rearranges the columns of the M by N matrix X as specified\n\
* by the permutation K(1),K(2),...,K(N) of the integers 1,...,N.\n\
* If FORWRD = .TRUE., forward permutation:\n\
*\n\
* X(*,K(J)) is moved X(*,J) for J = 1,2,...,N.\n\
*\n\
* If FORWRD = .FALSE., backward permutation:\n\
*\n\
* X(*,J) is moved to X(*,K(J)) for J = 1,2,...,N.\n\
*\n\n\
* Arguments\n\
* =========\n\
*\n\
* FORWRD (input) LOGICAL\n\
* = .TRUE., forward permutation\n\
* = .FALSE., backward permutation\n\
*\n\
* M (input) INTEGER\n\
* The number of rows of the matrix X. M >= 0.\n\
*\n\
* N (input) INTEGER\n\
* The number of columns of the matrix X. N >= 0.\n\
*\n\
* X (input/output) DOUBLE PRECISION array, dimension (LDX,N)\n\
* On entry, the M by N matrix X.\n\
* On exit, X contains the permuted matrix X.\n\
*\n\
* LDX (input) INTEGER\n\
* The leading dimension of the array X, LDX >= MAX(1,M).\n\
*\n\
* K (input/output) INTEGER array, dimension (N)\n\
* On entry, K contains the permutation vector. K is used as\n\
* internal workspace, but reset to its original value on\n\
* output.\n\
*\n\n\
* =====================================================================\n\
*\n\
* .. Local Scalars ..\n INTEGER I, II, IN, J\n DOUBLE PRECISION TEMP\n\
* ..\n"
|