BLAS/SRC/zswap.f(3)

✨ NAME ✨

BLAS/SRC/zswap.f β€” bestie, this is the file we're talking about, it lives in the BLAS folder under SRC and it's a Fortran file ending in .f πŸ’… (this page is from the LAPACK manual, just so you know who's hosting the party)


🌸 SYNOPSIS 🌸

Functions/Subroutines

  • subroutine zswap (n, zx, incx, zy, incy) β€” aka ZSWAP, the icon herself πŸ‘‘

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

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

ZSWAP πŸ¦‹

πŸ’– Purpose:

ZSWAP interchanges two vectors. that's it. that's the whole job. she swaps them. no cap. two vectors walk in, two vectors walk out, but like… the other way around. obsessed honestly ✨

🌈 Parameters

  • N β€” N is INTEGER, and it's the number of elements in the input vector(s), so basically how many lil guys we're shuffling around 🫢
  • ZX β€” ZX is COMPLEX*16 array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). yes the dimension is literally that whole expression, write it down exactly bestie, don't get cute with it πŸ’€
  • INCX β€” INCX is INTEGER, the storage spacing between elements of ZX. so like, are you stepping one at a time or are you striding like a runway model? πŸ‘‘
  • ZY β€” ZY is COMPLEX*16 array, dimension ( 1 + ( N - 1 )*abs( INCY ) ). same deal, different vector, same exact energy πŸ’œ
  • INCY β€” INCY is INTEGER, the storage spacing between elements of ZY. the stride for ZY, matching INCX's whole vibe but for the other one πŸŽ€

⭐ Author

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.
four whole institutions on the credits. group project but everyone actually showed up πŸ’…

πŸ¦‹ Further Details:

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

so jack dongarra wrote this back in 3/11/78 (an actual legend), and then on 12/3/93 somebody came through and changed the array(1) declarations to array(*) β€” glow-up of the century honestly 😭

πŸ“ Definition at line 80 of file zswap.f.

πŸ’« Author

Generated automatically by Doxygen for LAPACK from the source code. (not a human, not a bestie, just a doc generator doing its little thing πŸ€–βœ¨)


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

okay that's the whole page, go swap some vectors, mwah πŸ’–πŸŽ€πŸ«Ά