DCOPY 3 "11 March 1978" "Version 1.00"

Table of contents


NAME

dcopy - Double-precision vector copy

SYNOPSIS

Fortran (77, 90, 95, HPF):
f77 [ flags ] file(s) ... -L/usr/local/lib -lgjl
SUBROUTINE dcopy(n,dx,incx,dy,incy)
DOUBLE PRECISION    dx(*),       dy(*)
INTEGER             incx,        incy,        n
C (K&R, 89, 99), C++ (98):
cc [ flags ] -I/usr/local/include file(s) ... -L/usr/local/lib -lgjl
Use
#include <gjl.h>
to get this prototype:
void dcopy(const fortran_integer * n_, fortran_double_precision dx_[], const fortran_integer * incx_, fortran_double_precision dy_[], const fortran_integer * incy_);

NB: The definition of C/C++ data types fortran_ xxx, and the mapping of Fortran external names to C/C++ external names, is handled by the C/C++ header file. That way, the same function or subroutine name can be used in C, C++, and Fortran code, independent of compiler conventions for mangling of external names in these programming languages.

Last code modification: 11-Mar-1978


DESCRIPTION

Copy n elements of a vector dx(*) to a vector dy(*), starting at index 1, and then stepping with increments incx and incy, respectively.

Use unrolled loops for increments equal to one.

This is a LINPACK BLAS Level 1 primitive, with revised header comments.


AUTHORS

The algorithms and code are described in detail in the paper
Algorithm xxx: Quadruple-Precision Gamma(x) and psi(x) Functions for Real Arguments
in ACM Transactions on Mathematical Software, Volume ??, Number ??, Pages ????--???? and ????--????, 2001, by
Nelson H. F. Beebe
Center for Scientific Computing
University of Utah
Department of Mathematics, 110 LCB
155 S 1400 E RM 233
Salt Lake City, UT 84112-0090
Tel: +1 801 581 5254
FAX: +1 801 581 4148
Email: beebe@math.utah.edu, beebe@acm.org, beebe@computer.org
WWW URL: http://www.math.utah.edu/~beebe
and
James S. Ball
University of Utah
Department of Physics
Salt Lake City, UT 84112-0830
USA
Tel: +1 801 581 8397
FAX: +1 801 581 6256
Email: ball@physics.utah.edu
WWW URL: http://www.physics.utah.edu/people/faculty/ball.html