DCOPY(3)

πŸ“¦ version 3.12.0, in opensuse-leap 16.0

✨ DCOPY(3) ✨

okay so bestie, welcome to DCOPY β€” it's a page from the LAPACK Library Functions Manual, and it's literally the most "copy-paste but make it math" situation ever πŸ’…


πŸŽ€ NAME πŸŽ€

/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/BLAS/SRC/dcopy.f

yep, that's the whole name, that's the whole path, and honestly? she said "I contain multitudes" and meant it 😭


🌸 SYNOPSIS 🌸

Functions/Subroutines

  • subroutine DCOPY (n, dx, incx, dy, incy) β€” DCOPY

πŸ¦‹ Function/Subroutine Documentation πŸ¦‹

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

DCOPY. That's her. That's the whole name. Iconic behavior, no notes ✨

πŸ’– Purpose: πŸ’–

!>
!>    DCOPY copies a vector, x, to a vector, y.
!>    uses unrolled loops for increments equal to 1.
!>

so she copies a vector, x, over to a vector, y β€” and when the increments equal 1 she uses unrolled loops, which is the computational equivalent of doing it with her eyes closed bc she's just that good πŸ‘‘

🌈 Parameters 🌈

N

!>          N is INTEGER
!>         number of elements in input vector(s)
!>

it's an INTEGER, and it's the number of elements in your input vector(s). how many things are we copying? N. that's it. that's the number 🫢

DX

!>          DX is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCX ) )
!>

DX is a DOUBLE PRECISION array and her dimension is literally ( 1 + ( N - 1 )*abs( INCX ) ) β€” yes the abs matters, she's not playing games πŸ’€

INCX

!>          INCX is INTEGER
!>         storage spacing between elements of DX
!>

INCX is an INTEGER and she's the storage spacing between elements of DX. the ~vibes~ between them, if you will πŸ’…

DY

!>          DY is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCY ) )
!>

DY is a DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCY ) ). notice it's INCY and not INCX β€” read carefully bestie, these two are sisters not twins πŸ™ˆ

INCY

!>          INCY is INTEGER
!>         storage spacing between elements of DY
!>

INCY is an INTEGER, the storage spacing between elements of DY. that's her whole job and she's slaying it πŸŽ€


πŸ‘‘ Author πŸ‘‘

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

look at that group project actually getting finished, we love to see it 🫢✨


πŸ’œ Further Details: πŸ’œ

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

shoutout jack dongarra, linpack, dated 3/11/78 β€” and then modified 12/3/93, array(1) declarations changed to array(*) which is giving "glow up, but make it type declarations" πŸ’«

fr fr copy the dates exactly if you're citing her, 3/11/78 and 12/3/93, no cap 🧚

⭐ Definition ⭐

Definition at line 81 of file dcopy.f.


πŸ’€ lowkey reminder: DX and DY sizes are ( 1 + ( N - 1 )*abs( INCX ) ) and ( 1 + ( N - 1 )*abs( INCY ) ) respectively β€” they are NOT the same formula, do not swap them, I'm begging πŸ™ˆ

Generated automatically by Doxygen for LAPACK from the source code.

and that's the tea bestie β€” this page came straight out of LAPACK, Version 3.12.0, tied to /home/abui...SRC/dcopy.f(3), auto-generated by Doxygen and delivered to you with love πŸ“πŸ’–βœ¨

πŸ“¦ where this page comes from