1HPL_dlacpy(3) HPL Library Functions HPL_dlacpy(3)
2
3
4
6 HPL_dlacpy - B := A.
7
9 #include "hpl.h"
10
11 void HPL_dlacpy( const int M, const int N, const double * A, const int
12 LDA, double * B, const int LDB );
13
15 HPL_dlacpy copies an array A into an array B.
16
18 M (local input) const int
19 On entry, M specifies the number of rows of the arrays A and
20 B. M must be at least zero.
21
22 N (local input) const int
23 On entry, N specifies the number of columns of the arrays A
24 and 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,N).
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,M).
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 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
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);
52 return(0);
53 }
54
56 HPL_dlatcpy (3).
57
58
59
60HPL 2.2 February 24, 2016 HPL_dlacpy(3)