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 β
NisINTEGER. number of elements in input vector(s). like, how many little guys are we swapping today, bestie? - CX β
CXisCOMPLEXarray, 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 β
INCXisINTEGER. storage spacing between elements ofCX. basically how far apart the elements are chilling in memory π¦ - CY β
CYisCOMPLEXarray, dimension( 1 + ( N - 1 )*abs( INCY ) ). the other vector, the oneCXis trading places with, no cap - INCY β
INCYisINTEGER. storage spacing between elements ofCY. same deal asINCXbut 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 thearray(1)declarations got changed toarray(*). 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 π«Άππ
π¦ where this page comes from
- centos-stream 10: blas 3.12.0-7.el10 Β· BSD-3-Clause-Open-MPI
- fedora 43: blas 3.12.0-10.fc43 Β· BSD-3-Clause-Open-MPI
- fedora 43: blas 3.12.0-10.fc43 Β· BSD-3-Clause-Open-MPI
- fedora 44: blas 3.12.0-11.fc44 Β· BSD-3-Clause-Open-MPI
- fedora 44: blas 3.12.0-11.fc44 Β· BSD-3-Clause-Open-MPI
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms