BLAS/SRC/dcopy.f(3)

πŸ’– BLAS/SRC/dcopy.f(3) β€” the LAPACK manual, but make it make sense πŸ’–

okay bestie, sit down, hydrate, and let me tell you about the most lowkey iconic little subroutine in the whole BLAS lineup: dcopy. it lives in the LAPACK manual under BLAS/SRC/dcopy.f(3), and honestly? it's giving "does one thing and does it flawlessly." πŸ¦‹


✨ NAME ✨

BLAS/SRC/dcopy.f β€” that's the file, that's the vibe, that's the whole thing. πŸ’…


🌸 SYNOPSIS 🌸

Functions/Subroutines

subroutine dcopy (n, dx, incx, dy, incy)

DCOPY β€” she's a subroutine, she takes five arguments, she does not elaborate. πŸ‘‘


πŸŽ€ Function/Subroutine Documentation πŸŽ€

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

DCOPY πŸ’œ

πŸ’« Purpose πŸ’«

DCOPY copies a vector, x, to a vector, y.

and the tea? it uses unrolled loops for increments equal to 1. so when your spacing is exactly 1, she's zooming. no cap. πŸ”₯


🌈 Parameters 🌈

  • N β€” N is INTEGER, and she is the number of elements in the input vector(s). like, how many lil guys are we moving today, bestie.
  • DX β€” DX is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). this is your source vector, the one getting copied from. 🫢
  • INCX β€” INCX is INTEGER, and it's the storage spacing between elements of DX. basically: how far apart are we hopping through DX? πŸ‡
  • DY β€” DY is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCY ) ). this is your destination vector, the one everything lands in. ✨
  • INCY β€” INCY is INTEGER, the storage spacing between elements of DY. same deal as INCX but for the destination. 🎯

πŸ‘‘ Author πŸ‘‘

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

the whole squad really showed up for this one. respect. 🌟


🧚 Further Details 🧚

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

so yeah β€” jack dongarra, linpack, dated 3/11/78, and then a lil glow-up on 12/3/93 where the array(1) declarations got changed to array(*). a historic makeover moment, fr fr. πŸ’…


πŸ“ Definition πŸ“

Definition at line 81 of file dcopy.f.

⭐ Author ⭐

Generated automatically by Doxygen for LAPACK from the source code. (yes, even the docs have main character energy and generate themselves. we love an independent queen. πŸ‘‘)


Version 3.12.0 Β· Tue Nov 28 2023 12:08:41 Β· BLAS/SRC/dcopy.f(3)

and that's the whole page, bestie!! πŸ’– go forth, copy your vectors, respect the INCX and INCY spacing, and remember: increments equal to 1 get the unrolled-loop treatment because she's that girl. slay, periodt, mwah πŸŽ€βœ¨πŸ¦‹