BLAS/SRC/cswap.f(3)

πŸ’– BLAS/SRC/cswap.f β€” bestie edition πŸ’–

okay so this is a page from the LAPACK manual, specifically BLAS/SRC/cswap.f, and I am so excited to tell you about it because it is genuinely the most "just swap the vibes" routine to ever exist. no cap.


✨ NAME ✨

BLAS/SRC/cswap.f β€” it's giving "file that contains one (1) icon" πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

Functions/Subroutines

  • subroutine cswap (n, cx, incx, cy, incy) β€” CSWAP 🫢

🌸 Function/Subroutine Documentation 🌸

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

CSWAP

πŸ’œ Purpose:

CSWAP interchanges two vectors. that's it. that's the whole personality. two vectors walk in, they trade places, everybody goes home. iconic behaviour honestly ✨

πŸŽ€ Parameters πŸŽ€

  • N β€” N is INTEGER. number of elements in input vector(s). like, how many little guys are we swapping today, bestie?
  • CX β€” CX is COMPLEX array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). this is one of the two vectors in the swap, and yes the dimension formula is a whole mood but it's exactly what it says πŸ’…
  • INCX β€” INCX is INTEGER. storage spacing between elements of CX. basically how far apart the elements are chilling in memory πŸ¦‹
  • CY β€” CY is COMPLEX array, dimension ( 1 + ( N - 1 )*abs( INCY ) ). the other vector, the one CX is trading places with, no cap
  • INCY β€” INCY is INTEGER. storage spacing between elements of CY. same deal as INCX but for the other side πŸŽ€

πŸ‘‘ 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(*)
so this routine has history, okay? 1978 original, then a glow-up on 12/3/93 where the array(1) declarations got changed to array(*). we love an evolution arc πŸ’–

Definition at line 80 of file cswap.f.


⭐ Author ⭐

Generated automatically by Doxygen for LAPACK from the source code. (not me writing it by hand, the robots did that part πŸ€–βœ¨)


okay that's the whole page bestie, mwah πŸ’‹

Version 3.12.0 β€” dated Tue Nov 28 2023 12:08:41 β€” filed under BLAS/SRC/cswap.f(3). go swap some vectors, you absolute main character πŸ«ΆπŸŒˆπŸ‘‘