ZSWAP(3)

πŸ“¦ version 3.12.0, in opensuse-leap 16.0

πŸ’… 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