BLAS/SRC/sswap.f(3)

✨ BLAS/SRC/sswap.f(3) ✨

okay bestie, welcome to the LAPACK manual page for BLAS/SRC/sswap.f β€” yes the whole file is the star here, no cap πŸ’…


πŸŽ€ NAME πŸŽ€

BLAS/SRC/sswap.f

like. that's literally it. that's the name. iconic behavior honestly πŸ¦‹


🌸 SYNOPSIS 🌸

Functions/Subroutines

  • subroutine sswap (n, sx, incx, sy, incy) β€” aka SSWAP, the moment we've all been waiting for ✨

πŸ’– Function/Subroutine Documentation πŸ’–

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

SSWAP 🫢

⭐ Purpose ⭐

ngl the job description here is so clean:

SSWAP interchanges two vectors. it uses unrolled loops for increments equal to 1. πŸ”₯

that's it. swap city. two vectors walk in, two vectors walk out with each other's whole identity. main character energy fr fr πŸ‘‘

πŸ¦‹ Parameters πŸ¦‹

  • N β€” N is INTEGER, and it's the number of elements in input vector(s). so like, how many besties are we swapping. the headcount. the roster size. periodt πŸ’œ
  • SX β€” SX is REAL array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). one of the two vectors in this whole exchange, she's got a dimension formula and she's not afraid to use it 🌈
  • INCX β€” INCX is INTEGER, and it's the storage spacing between elements of SX. like how far apart each element is standing from the next one. personal space, but make it integer πŸŽ€
  • SY β€” SY is REAL array, dimension ( 1 + ( N - 1 )*abs( INCY ) ). the other vector!! the swap partner!! the one SX is about to trade places with entirely πŸ’«
  • INCY β€” INCY is INTEGER, and it's the storage spacing between elements of SY. same deal as INCX but for the other girlie. every element gets her own spacing ok πŸ™ˆ

πŸ‘‘ Author πŸ‘‘

shoutout to the legends who brought us this masterpiece:

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

absolute icons, every single one πŸ«ΆπŸ’–

🌟 Further Details: 🌟

the lore drop, the origin story:

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

so it's giving vintage 1978 jack dongarra linpack energy, and then a lil glow-up on 12/3/93 where array(1) declarations got changed to array(*). a makeover. a rebrand. we love to see it ✨

Definition at line 81 of file sswap.f.

πŸ’… Author πŸ’…

Generated automatically by Doxygen for LAPACK from the source code. so like, the docs wrote themselves and honestly? they ate. πŸ€–πŸ’–


Version 3.12.0 Β· Tue Nov 28 2023 12:08:41 Β· BLAS/SRC/sswap.f(3)

and that's the whole page bestie!! go forth and swap ur vectors, stay unrolled for increments equal to 1, and remember: this page was served to you by LAPACK version 3.12.0, dated Tue Nov 28 2023 at 12:08:41, from BLAS/SRC/sswap.f(3) πŸ¦‹πŸ’–βœ¨ mwah, bye!! πŸŽ€