Statistiques
| Révision :

root / www / HPL_dlacpy.html @ 7

Historique | Voir | Annoter | Télécharger (2,01 ko)

1
<HTML>
2
<HEAD>
3
<TITLE>HPL_dlacpy HPL 2.0 Library Functions September 10, 2008</TITLE> 
4
</HEAD>
5

    
6
<BODY BGCOLOR="WHITE" TEXT = "#000000" LINK = "#0000ff" VLINK = "#000099"
7
      ALINK = "#ffff00">
8

    
9
<H1>Name</H1>
10
<B>HPL_dlacpy</B> B := A.
11

    
12
<H1>Synopsis</H1>
13
<CODE>#include "hpl.h"</CODE><BR><BR>
14
<CODE>void</CODE>
15
<CODE>HPL_dlacpy(</CODE>
16
<CODE>const int</CODE>
17
<CODE>M</CODE>,
18
<CODE>const int</CODE>
19
<CODE>N</CODE>,
20
<CODE>const double *</CODE>
21
<CODE>A</CODE>,
22
<CODE>const int</CODE>
23
<CODE>LDA</CODE>,
24
<CODE>double *</CODE>
25
<CODE>B</CODE>,
26
<CODE>const int</CODE>
27
<CODE>LDB</CODE>
28
<CODE>);</CODE>
29

    
30
<H1>Description</H1>
31
<B>HPL_dlacpy</B>
32
copies an array A into an array B.
33

    
34
<H1>Arguments</H1>
35
<PRE>
36
M       (local input)                 const int
37
        On entry,  M specifies the number of rows of the arrays A and
38
        B. M must be at least zero.
39
</PRE>
40
<PRE>
41
N       (local input)                 const int
42
        On entry,  N specifies  the number of columns of the arrays A
43
        and B. N must be at least zero.
44
</PRE>
45
<PRE>
46
A       (local input)                 const double *
47
        On entry, A points to an array of dimension (LDA,N).
48
</PRE>
49
<PRE>
50
LDA     (local input)                 const int
51
        On entry, LDA specifies the leading dimension of the array A.
52
        LDA must be at least MAX(1,M).
53
</PRE>
54
<PRE>
55
B       (local output)                double *
56
        On entry, B points to an array of dimension (LDB,N). On exit,
57
        B is overwritten with A.
58
</PRE>
59
<PRE>
60
LDB     (local input)                 const int
61
        On entry, LDB specifies the leading dimension of the array B.
62
        LDB must be at least MAX(1,M).
63
</PRE>
64

    
65
<H1>Example</H1>
66
<CODE>#include "hpl.h"</CODE><BR><BR>
67
<PRE>
68
int main(int argc, char *argv[])
69
{
70
   double a[2*2], b[2*2];
71
   a[0] = 1.0; a[1] = 3.0; a[2] = 2.0; a[3] = 4.0;
72
   HPL_dlacpy( 2, 2, a, 2, b, 2 );
73
   printf("  [%f,%f]\n", b[0], b[2]);
74
   printf("b=[%f,%f]\n", b[1], b[3]);
75
   exit(0);
76
   return(0);
77
}
78
</PRE>
79

    
80
<H1>See Also</H1>
81
<A HREF="HPL_dlatcpy.html">HPL_dlatcpy</A>.
82

    
83
</BODY>
84
</HTML>