Statistiques
| Révision :

root / man / man3 / HPL_dcopy.3 @ 1

Historique | Voir | Annoter | Télécharger (1,63 ko)

1
.TH HPL_dcopy 3 "September 10, 2008" "HPL 2.0" "HPL Library Functions"
2
.SH NAME
3
HPL_dcopy \- y := x.
4
.SH SYNOPSIS
5
\fB\&#include "hpl.h"\fR
6
 
7
\fB\&void\fR
8
\fB\&HPL_dcopy(\fR
9
\fB\&const int\fR
10
\fI\&N\fR,
11
\fB\&const double *\fR
12
\fI\&X\fR,
13
\fB\&const int\fR
14
\fI\&INCX\fR,
15
\fB\&double *\fR
16
\fI\&Y\fR,
17
\fB\&const int\fR
18
\fI\&INCY\fR
19
\fB\&);\fR
20
.SH DESCRIPTION
21
\fB\&HPL_dcopy\fR
22
copies the vector x into the vector y.
23
.SH ARGUMENTS
24
.TP 8
25
N       (local input)           const int
26
On entry, N specifies the length of the vectors  x  and  y. N
27
must be at least zero.
28
.TP 8
29
X       (local input)           const double *
30
On entry,  X  is an incremented array of dimension  at  least
31
( 1 + ( n - 1 ) * abs( INCX ) )  that  contains the vector x.
32
.TP 8
33
INCX    (local input)           const int
34
On entry, INCX specifies the increment for the elements of X.
35
INCX must not be zero.
36
.TP 8
37
Y       (local input/output)    double *
38
On entry,  Y  is an incremented array of dimension  at  least
39
( 1 + ( n - 1 ) * abs( INCY ) )  that  contains the vector y.
40
On exit, the entries of the incremented array  Y  are updated
41
with the entries of the incremented array X.
42
.TP 8
43
INCY    (local input)           const int
44
On entry, INCY specifies the increment for the elements of Y.
45
INCY must not be zero.
46
.SH EXAMPLE
47
\fI\&#include "hpl.h"\fR
48
 
49
int main(int argc, char *argv[])
50
.br
51
{
52
.br
53
   double x[3], y[3];
54
.br
55
   x[0] = 1.0; x[1] = 2.0; x[2] = 3.0;
56
.br
57
   y[0] = 4.0; y[1] = 5.0; y[2] = 6.0;
58
.br
59
   HPL_dcopy( 3, x, 1, y, 1 );
60
.br
61
   printf("y=[%f,%f,%f]\en", y[0], y[1], y[2]);
62
.br
63
   exit(0); return(0);
64
.br
65
}
66
.SH SEE ALSO
67
.BR HPL_daxpy \ (3),
68
.BR HPL_dscal \ (3),
69
.BR HPL_dswap \ (3).