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)β akaSSWAP, 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 ofSX. 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 oneSXis about to trade places with entirely π«INCYβINCY is INTEGER, and it's the storage spacing between elements ofSY. same deal asINCXbut 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!! π
π¦ 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