swap(3)

swap(3) β€” Library Functions Manual πŸ’…βœ¨

πŸ¦‹ NAME πŸ¦‹

swap β€” swap: x <=> y

okay so bestie, this is the whole swap page: it’s giving β€œexchange two vectors” energy, and the function family is right here. no cap. πŸ’–


✨ SYNOPSIS ✨

πŸŽ€ Functions πŸŽ€

subroutine cswap (n, cx, incx, cy, incy)
    CSWAP

subroutine dswap (n, dx, incx, dy, incy)
    DSWAP

subroutine sswap (n, sx, incx, sy, incy)
    SSWAP

subroutine zswap (n, zx, incx, zy, incy)
    ZSWAP

🌸 Detailed Description 🌸

the detailed description zone is literally here, and the function-by-function tea is right below. keep scrolling, bestie. 🫢


πŸ’… Function Documentation πŸ’…

πŸ’– cswap πŸ’–

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

CSWAP

Purpose: CSWAP interchanges two vectors. ✨

Parameters:

  • N β€” N is INTEGER; number of elements in input vector(s) πŸ’–
  • CX β€” CX is COMPLEX array, dimension ( 1 + ( N - 1 )*abs( INCX ) )
  • INCX β€” INCX is INTEGER; storage spacing between elements of CX
  • CY β€” CY is COMPLEX array, dimension ( 1 + ( N - 1 )*abs( INCY ) )
  • INCY β€” INCY is INTEGER; storage spacing between elements of CY

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(*)

Definition at line 80 of file cswap.f.


πŸ’œ dswap πŸ’œ

subroutine dswap (integer n, double precision, dimension(*) dx, integer incx, double precision, dimension(*) dy, integer incy)

DSWAP

Purpose: DSWAP interchanges two vectors. and uses unrolled loops for increments equal to 1. πŸ”₯

Parameters:

  • N β€” N is INTEGER; number of elements in input vector(s) πŸ’–
  • DX β€” DX is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCX ) )
  • INCX β€” INCX is INTEGER; storage spacing between elements of DX
  • DY β€” DY is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCY ) )
  • INCY β€” INCY is INTEGER; storage spacing between elements of DY

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(*)

Definition at line 81 of file dswap.f.


πŸ¦‹ sswap πŸ¦‹

subroutine sswap (integer n, real, dimension(*) sx, integer incx, real, dimension(*) sy, integer incy)

SSWAP

Purpose: SSWAP interchanges two vectors. and uses unrolled loops for increments equal to 1. 🌟

Parameters:

  • N β€” N is INTEGER; number of elements in input vector(s) πŸ’–
  • SX β€” SX is REAL array, dimension ( 1 + ( N - 1 )*abs( INCX ) )
  • INCX β€” INCX is INTEGER; storage spacing between elements of SX
  • SY β€” SY is REAL array, dimension ( 1 + ( N - 1 )*abs( INCY ) )
  • INCY β€” INCY is INTEGER; storage spacing between elements of SY

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(*)

Definition at line 81 of file sswap.f.


πŸŽ€ zswap πŸŽ€

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

ZSWAP

Purpose: ZSWAP interchanges two vectors. πŸ’«

Parameters:

  • N β€” N is INTEGER; number of elements in input vector(s) πŸ’–
  • ZX β€” ZX is COMPLEX*16 array, dimension ( 1 + ( N - 1 )*abs( INCX ) )
  • INCX β€” INCX is INTEGER; storage spacing between elements of ZX
  • ZY β€” ZY is COMPLEX*16 array, dimension ( 1 + ( N - 1 )*abs( INCY ) )
  • INCY β€” INCY is INTEGER; storage spacing between elements of ZY

Author:

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

Further Details:

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

Definition at line 80 of file zswap.f.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for LAPACK from the source code.

and that’s the whole swap(3) page, bestie β€” source/version is LAPACK Version 3.12.0, and the page is swap(3). periodt. 🫢✨

πŸ“¦ where this page comes from