1HPL_dlatcpy(3)               HPL Library Functions              HPL_dlatcpy(3)
2
3
4

NAME

6       HPL_dlatcpy - B := A^T
7

SYNOPSIS

9       #include "hpl.h"
10
11       void HPL_dlatcpy( const int M, const int N, const double * A, const int
12       LDA, double * B, const int LDB );
13

DESCRIPTION

15       HPL_dlatcpy copies the transpose of an array A into an array B.
16

ARGUMENTS

18       M       (local input)           const int
19               On entry,  M specifies the number of  rows of the array  B  and
20               the number of columns of A. M must be at least zero.
21
22       N       (local input)           const int
23               On  entry,   N specifies the number of  rows of the array A and
24               the number of columns of B. N must be at least zero.
25
26       A       (local input)           const double *
27               On entry, A points to an array of dimension (LDA,M).
28
29       LDA     (local input)           const int
30               On entry, LDA specifies the leading dimension of the  array  A.
31               LDA must be at least MAX(1,N).
32
33       B       (local output)          double *
34               On entry, B points to an array of dimension (LDB,N). On exit, B
35               is overwritten with the transpose of A.
36
37       LDB     (local input)           const int
38               On entry, LDB specifies the leading dimension of the  array  B.
39               LDB must be at least MAX(1,M).
40

EXAMPLE

42       #include "hpl.h"
43
44       int main(int argc, char *argv[])
45       {
46          double a[2*2], b[2*2];
47          a[0] = 1.0; a[1] = 3.0; a[2] = 2.0; a[3] = 4.0;
48          HPL_dlacpy( 2, 2, a, 2, b, 2 );
49          printf("  [%f,%f]\n", b[0], b[2]);
50          printf("b=[%f,%f]\n", b[1], b[3]);
51          exit(0); return(0);
52       }
53

SEE ALSO

55       HPL_dlacpy (3).
56
57
58
59HPL 2.1                        October 26, 2012                 HPL_dlatcpy(3)
Impressum