CSRSCL(3)
π¦ csrscl.f β Library Functions Manual π¦
okay bestie, you're literally looking at the manual page for /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/csrscl.f and it's giving iconic LAPACK energy β¨. lowkey this whole page is a glow-up for one tiny subroutine, and we're gonna read it together, no cap π
.
πΈ NAME πΈ
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/csrscl.f β yes the name is literally the file path, and honestly? main character behavior π.
π SYNOPSIS π
π«Ά Functions/Subroutines
subroutine CSRSCL (n, sa, sx, incx)β CSRSCL multiplies a vector by the reciprocal of a real scalar. that's it, that's the vibe π«.
π Function/Subroutine Documentation π
subroutine CSRSCL (integer n, real sa, complex, dimension( * ) sx, integer incx)
CSRSCL multiplies a vector by the reciprocal of a real scalar. obsessed with the clarity tbh π.
π Purpose π
!> !> CSRSCL multiplies an n-element complex vector x by the real scalar !> 1/a. This is done without overflow or underflow as long as !> the final result x/a does not overflow or underflow. !>
so like, the whole point is dividing your complex vector x by the real scalar a β and it's built to not overflow or underflow on the way, as long as the final result x/a itself doesn't overflow or underflow. periodt π
.
π Parameters π
NβN is INTEGER. it's the number of components of the vectorx. literally the length, bestie β¨.SAβSA is REAL. this is the scalaraused to divide each component ofx. big warning moment:SA must be >= 0, or the subroutine will divide by zero ππ. not me warning you twice.SXβSX is COMPLEX array, dimension (1+(N-1)*abs(INCX)). this is the n-element vectorx. the whole point π¦.INCXβINCX is INTEGER. it's the increment between successive values of the vectorSX. and listen:> 0: SX(1) = X(1) and SX(1+(i-1)*INCX) = x(i), 1< i<= n
that's the mapping, copy it exactly, iykyk π.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
all the icons who brought you this routine π«Άπ.
Definition at line 83 of file csrscl.f. yes, line 83, we stan a precise location β.
π§ Author π§
Generated automatically by Doxygen for LAPACK from the source code. the robots made this page and honestly they ate π€π .
okay that's the whole thing, bestie. LAPACK, Version 3.12.0, and the source path is /home/abui...RC/csrscl.f(3) β now go divide that vector safely, and remember: SA >= 0 or we're in divide-by-zero territory, and we don't do that here ππΈ.
π¦ 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