copy(3)

🌸 copy(3) 🌸

hi bestie πŸ’– welcome to copy(3) from the Library Functions Manual. this is the page where copy does exactly what it says on the tin: y = x. no cap.

🌸 NAME 🌸

copy β€” copy: y = x

✨ SYNOPSIS ✨

πŸŽ€ Functions πŸŽ€

okay so there are four flavors, one for each Fortran type. all iconic, all doing the same copy vibe:

ccopy β€” CCOPY

subroutine ccopy (integer n, complex, dimension(*) cx, integer incx,
       complex, dimension(*) cy, integer incy)

dcopy β€” DCOPY

subroutine dcopy (integer n, double precision, dimension(*) dx, integer
       incx, double precision, dimension(*) dy, integer incy)

scopy β€” SCOPY

subroutine scopy (integer n, real, dimension(*) sx, integer incx, real,
       dimension(*) sy, integer incy)

zcopy β€” ZCOPY

subroutine zcopy (integer n, complex*16, dimension(*) zx, integer incx,
       complex*16, dimension(*) zy, integer incy)

πŸ¦‹ Detailed Description πŸ¦‹

this section is short and sweet, bestie: the full function tea is literally right below πŸ’…

πŸ’… Function Documentation πŸ’…

🌈 ccopy β€” CCOPY 🌈

Signature:

subroutine ccopy (integer n, complex, dimension(*) cx, integer incx,
       complex, dimension(*) cy, integer incy)

Purpose: CCOPY copies a vector x to a vector y. that's the whole assignment, and it ate πŸ’–

Parameters

  • N β€” is INTEGER, and it's the number of elements in input vector(s).
  • CX β€” is COMPLEX array, dimension ( 1 + ( N - 1 )*abs( INCX ) ).
  • INCX β€” is INTEGER, the storage spacing between elements of CX.
  • CY β€” is COMPLEX array, dimension ( 1 + ( N - 1 )*abs( INCY ) ).
  • INCY β€” is INTEGER, the storage spacing between elements of CY.

Author:

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

Further Details:

jack dongarra, linpack, 3/11/78. modified 12/3/93, array(1) declarations changed to array(*)

Definition: at line 80 of file ccopy.f.


🌈 dcopy β€” DCOPY 🌈

Signature:

subroutine dcopy (integer n, double precision, dimension(*) dx, integer
       incx, double precision, dimension(*) dy, integer incy)

Purpose: DCOPY copies a vector, x, to a vector, y. it uses unrolled loops for increments equal to 1. periodt ✨

Parameters

  • N β€” is INTEGER, and it's the number of elements in input vector(s).
  • DX β€” is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCX ) ).
  • INCX β€” is INTEGER, the storage spacing between elements of DX.
  • DY β€” is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCY ) ).
  • INCY β€” is INTEGER, the storage spacing between elements of DY.

Author:

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

Further Details:

jack dongarra, linpack, 3/11/78. modified 12/3/93, array(1) declarations changed to array(*)

Definition: at line 81 of file dcopy.f.


🌈 scopy β€” SCOPY 🌈

Signature:

subroutine scopy (integer n, real, dimension(*) sx, integer incx, real,
       dimension(*) sy, integer incy)

Purpose: SCOPY copies a vector, x, to a vector, y. it uses unrolled loops for increments equal to 1. slay πŸ’…

Parameters

  • N β€” is INTEGER, and it's the number of elements in input vector(s).
  • SX β€” is REAL array, dimension ( 1 + ( N - 1 )*abs( INCX ) ).
  • INCX β€” is INTEGER, the storage spacing between elements of SX.
  • SY β€” is REAL array, dimension ( 1 + ( N - 1 )*abs( INCY ) ).
  • INCY β€” is INTEGER, the storage spacing between elements of SY.

Author:

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

Further Details:

jack dongarra, linpack, 3/11/78. modified 12/3/93, array(1) declarations changed to array(*)

Definition: at line 81 of file scopy.f.


🌈 zcopy β€” ZCOPY 🌈

Signature:

subroutine zcopy (integer n, complex*16, dimension(*) zx, integer incx,
       complex*16, dimension(*) zy, integer incy)

Purpose: ZCOPY copies a vector, x, to a vector, y. iconic behavior, honestly πŸ’–

Parameters

  • N β€” is INTEGER, and it's the number of elements in input vector(s).
  • ZX β€” is COMPLEX*16 array, dimension ( 1 + ( N - 1 )*abs( INCX ) ).
  • INCX β€” is INTEGER, the storage spacing between elements of ZX.
  • ZY β€” is COMPLEX*16 array, dimension ( 1 + ( N - 1 )*abs( INCY ) ).
  • INCY β€” is INTEGER, the storage spacing between elements of ZY.

Author:

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

Further Details:

jack dongarra, linpack, 4/11/78. modified 12/3/93, array(1) declarations changed to array(*)

Definition: at line 80 of file zcopy.f.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for LAPACK from the source code. πŸ’…


okay that's the whole page, bestie 🫢 the footer tea is LAPACK Version 3.12.0 β€” that's the source/version, and there's no date line to report. bye πŸ’–βœ¨

πŸ“¦ where this page comes from