BLAS/SRC/dswap.f(3)

πŸ’– BLAS/SRC/dswap.f πŸ’–

okay bestie, welcome to the LAPACK corner of the manual pages, this one's file is BLAS/SRC/dswap.f and it is lowkey iconic because it does ONE thing and does it flawlessly ✨


✨ NAME ✨

BLAS/SRC/dswap.f β€” no cap, that's literally the whole name, she's a file, she's a legend, periodt πŸ’…


🌸 SYNOPSIS 🌸

Functions/Subroutines

  • subroutine dswap (n, dx, incx, dy, incy) β€” the one and only DSWAP 🫢

πŸ’œ Function/Subroutine Documentation πŸ’œ

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

DSWAP β€” she's the main character, she's the whole point πŸ‘‘

πŸŽ€ Purpose:

DSWAP interchanges two vectors. fr fr, that's it, that's the job πŸ’«

and uses unrolled loops for increments equal to 1 β€” so when INCX and INCY are both 1, she stops being cute and starts being FAST 😀πŸ”₯

πŸ¦‹ Parameters

  • N β€” N is INTEGER. it's the number of elements in your input vector(s), like how many besties are in the group chat πŸ’Œ
  • DX β€” DX is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). one of the two vectors getting swapped, she's got range πŸ’…
  • INCX β€” INCX is INTEGER. the storage spacing between elements of DX β€” aka how far apart the girlies are sitting πŸͺ‘πŸͺ‘
  • DY β€” DY is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCY ) ). the other vector, she's swapping places with DX, it's giving Freaky Friday πŸŽ€
  • 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.

these four are the parents of this whole operation, respect them 🫢

πŸ’€ Further Details:

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

so the origin story is jack dongarra, from linpack, dated 3/11/78 β€” a genuine vintage queen πŸ‘‘ and then on 12/3/93 somebody came in and changed the array(1) declarations to array(*), glow-up complete πŸ’–

Definition at line 81 of file dswap.f. πŸ“


⭐ Author ⭐

Generated automatically by Doxygen for LAPACK from the source code. she didn't write herself, a robot did, and honestly? slay πŸ€–βœ¨


aaaand that's the whole page bestie!! 🌸 no notes, 10/10, she swaps vectors and she looks good doing it πŸŽ€

this was Version 3.12.0, dated Tue Nov 28 2023 12:08:41, and the page you just read is BLAS/SRC/dswap.f(3) πŸ’– bye ily, go swap something 🫢✨