SRC/crscl.f(3)
SRC/crscl.f(3) π
okay so we're in the Library Functions Manual, and this page is literally SRC/crscl.f(3). It's giving subroutine documentation with main-character energy, and we're about to make it make sense, bestie. π«Ά
πΈ NAME πΈ
SRC/crscl.f β that's the name, no cap. β¨
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine crscl (n, a, x, incx)β CRSCL multiplies a vector by the reciprocal of a real scalar. π
π«Ά Function/Subroutine Documentation π«Ά
Here's the signature in all its glory:
subroutine crscl (integer n, complex a, complex, dimension( * ) x, integer
incx)
CRSCL multiplies a vector by the reciprocal of a real scalar. That's the one-liner from the top too β iconic like that. π
π Purpose π
CRSCL multiplies an n-element complex vector x by the complex scalar 1/a. This is done without overflow or underflow as long as the final result x/a does not overflow or underflow. π
That overflow/underflow caveat is not a vibe check you skip, bestie β it's literally the condition. π
π Parameters π
NβN is INTEGER. The number of components of the vectorx. π’AβA is COMPLEX. The scalarawhich is used to divide each component ofx.
β οΈAmust not be0, or the subroutine will divide by zero. So like... do not do that. π
XβX is COMPLEX array, dimension (1+(N-1)*abs(INCX)). Then-element vectorx. π¦INCXβINCX is INTEGER. The increment between successive values of the vectorX.
> 0: X(1) = X(1) and X(1+(i-1)*INCX) = x(i), 1< i<= n
That's the exact setup for the positive increment case, periodt. π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition at line 83 of file crscl.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code. π€β¨
later bestie π β this is SRC/crscl.f(3) from LAPACK Version 3.12.0, and that's the footer tea. π
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms