ZSWAP(3)
π ZSWAP(3) β or, the girlies are swapping vectors π
okay so real talk: this page is from the LAPACK library functions manual, and the file it's documenting lives at /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/BLAS/SRC/zswap.f β¨ (yes that's a whole path, yes I'm gonna say it exactly, no I will not be shortening it, it's giving very "deep in the build tree" energy π«Ά).
β¨ SYNOPSIS β¨
Functions/Subroutines πΈ
subroutine ZSWAP (n, zx, incx, zy, incy)
bestie. that's it. that's the subroutine. it's called ZSWAP and honestly it ate π
π¦ Function/Subroutine Documentation π¦
subroutine ZSWAP (integer n, complex*16, dimension(*) zx, integer incx,
complex*16, dimension(*) zy, integer incy)
ZSWAP π β the main character of this whole page, no cap.
π Purpose: π
!>
!> ZSWAP interchanges two vectors.
!>
literally all it does: ZSWAP interchanges two vectors. swap city, population: your two vectors π that's the whole vibe. iconic behavior tbh.
π Parameters
N
!> N is INTEGER
!> number of elements in input vector(s)
!>
N is INTEGER β it's the number of elements in your input vector(s) π like, how many of them are we swapping, bestie? this many.
ZX
!> ZX is COMPLEX*16 array, dimension ( 1 + ( N - 1 )*abs( INCX ) )
!>
ZX is a COMPLEX*16 array β dimension ( 1 + ( N - 1 )*abs( INCX ) ) β¨ write that formula down, it's important, I'm not even joking π
INCX
!> INCX is INTEGER
!> storage spacing between elements of ZX
!>
INCX is INTEGER β it's the storage spacing between elements of ZX πΈ so like, are we walking through ZX one at a time or doing little skips? that's INCX's job.
ZY
!> ZY is COMPLEX*16 array, dimension ( 1 + ( N - 1 )*abs( INCY ) )
!>
ZY is a COMPLEX*16 array β dimension ( 1 + ( N - 1 )*abs( INCY ) ) π notice it's INCY this time, not INCX, because ZY is its own girl and has its own spacing π
INCY
!> INCY is INTEGER
!> storage spacing between elements of ZY
!>
INCY is INTEGER β the storage spacing between elements of ZY π¦ same deal as INCX but for the other vector, periodt.
β Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
the whole academic squad showed up for this one π«Άπ
π₯ Further Details:
!>
!> jack dongarra, 3/11/78.
!> modified 12/3/93, array(1) declarations changed to array(*)
!>
ngl this is the lore drop π β jack dongarra, 3/11/78, and then modified 12/3/93 where array(1) declarations were changed to array(*) π vintage code, still slaying.
Definition at line 80 of file zswap.f π (yes, line 80, exactly, I would never lie to you).
π« Author (the meta one) π«
Generated automatically by Doxygen for LAPACK from the source code π€β¨ so nobody hand-wrote this page, a robot did it for us and honestly? respect.
ok that's the whole page bestie π no extra options, no hidden flags, no surprises β just one little swap subroutine living its truth. don't go inventing parameters that aren't here, iykyk π
and that's a wrap, babe π β LAPACK, Version 3.12.0, page pulled from /home/abui...SRC/zswap.f(3) π¦ mwah, go swap something pretty π
π
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms