Statistiques
| Révision :

root / www / HPL_dcopy.html

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

1
<HTML>
2
<HEAD>
3
<TITLE>HPL_dcopy 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_dcopy</B> y := x.
11

    
12
<H1>Synopsis</H1>
13
<CODE>#include "hpl.h"</CODE><BR><BR>
14
<CODE>void</CODE>
15
<CODE>HPL_dcopy(</CODE>
16
<CODE>const int</CODE>
17
<CODE>N</CODE>,
18
<CODE>const double *</CODE>
19
<CODE>X</CODE>,
20
<CODE>const int</CODE>
21
<CODE>INCX</CODE>,
22
<CODE>double *</CODE>
23
<CODE>Y</CODE>,
24
<CODE>const int</CODE>
25
<CODE>INCY</CODE>
26
<CODE>);</CODE>
27

    
28
<H1>Description</H1>
29
<B>HPL_dcopy</B>
30
copies the vector x into the vector y.
31

    
32
<H1>Arguments</H1>
33
<PRE>
34
N       (local input)                 const int
35
        On entry, N specifies the length of the vectors  x  and  y. N
36
        must be at least zero.
37
</PRE>
38
<PRE>
39
X       (local input)                 const double *
40
        On entry,  X  is an incremented array of dimension  at  least
41
        ( 1 + ( n - 1 ) * abs( INCX ) )  that  contains the vector x.
42
</PRE>
43
<PRE>
44
INCX    (local input)                 const int
45
        On entry, INCX specifies the increment for the elements of X.
46
        INCX must not be zero.
47
</PRE>
48
<PRE>
49
Y       (local input/output)          double *
50
        On entry,  Y  is an incremented array of dimension  at  least
51
        ( 1 + ( n - 1 ) * abs( INCY ) )  that  contains the vector y.
52
        On exit, the entries of the incremented array  Y  are updated
53
        with the entries of the incremented array X.
54
</PRE>
55
<PRE>
56
INCY    (local input)                 const int
57
        On entry, INCY specifies the increment for the elements of Y.
58
        INCY must not be zero.
59
</PRE>
60

    
61
<H1>Example</H1>
62
<CODE>#include "hpl.h"</CODE><BR><BR>
63
<PRE>
64
int main(int argc, char *argv[])
65
{
66
   double x[3], y[3];
67
   x[0] = 1.0; x[1] = 2.0; x[2] = 3.0;
68
   y[0] = 4.0; y[1] = 5.0; y[2] = 6.0;
69
   HPL_dcopy( 3, x, 1, y, 1 );
70
   printf("y=[%f,%f,%f]\n", y[0], y[1], y[2]);
71
   exit(0); return(0);
72
}
73
</PRE>
74

    
75
<H1>See Also</H1>
76
<A HREF="HPL_daxpy.html">HPL_daxpy</A>,
77
<A HREF="HPL_dscal.html">HPL_dscal</A>,
78
<A HREF="HPL_dswap.html">HPL_dswap</A>.
79

    
80
</BODY>
81
</HTML>