/home/abui...RC/crscl.f(3)
π
/home/abui...RC/crscl.f(3) β Library Functions Manual, bestie β¨
okay so picture this: you're deep in the LAPACK source tree, right, and you stumble on this little icon. That's crscl.f, and it lives at:
/home/abuild/rpmbuild/BUILD/lapack-
static-3.12.0-build/lapack-3.12.0/SRC/crscl.f
no cap, that's the whole NAME section and it's just the path. slay, we love a self-explaining filename π
β¨ SYNOPSIS β¨
Functions/Subroutines πΈ
subroutine CRSCL (n, a, x, incx)β CRSCL multiplies a vector by the reciprocal of a real scalar. yes bestie, that's the whole vibe π
π¦ Function/Subroutine Documentation π¦
subroutine CRSCL (integer n, complex a, complex, dimension( * ) x, integer
incx)
CRSCL multiplies a vector by the reciprocal of a real scalar. periodt. π
π 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.!>
so like β it's dividing by a, but the fancy way. It multiplies by 1/a and it's carefully built so you don't overflow or underflow along the way. π the caveat tho: this only holds as long as the final result x/a does not overflow or underflow. So the intermediate math is safe, the destination is on you, iykyk. π
π§ Parameters π§
NβN is INTEGER, and it's literally the number of components of the vector x. that's it, that's the whole job. πAβA is COMPLEX, the scalarawhich is used to divide each component of x. π but listen:Amust not be 0, or the subroutine will divide by zero. not me warning you about the classic divide-by-zero jump scare π<red>hard no ona = 0, bestie.</red>XβX is COMPLEX array, dimension (1+(N-1)*abs(INCX)), and it's the n-element vector x. main character energy honestly. β¨INCXβINCX is INTEGER, the increment between successive values of the vectorX. and then the iconic line:
> 0: X(1) = X(1) and X(1+(i-1)*INCX) = x(i), 1< i<= n
so the stride mapping is spelled out exactly like that β X(1) = X(1) and X(1+(i-1)*INCX) = x(i) for 1< i<= n. write it down, don't improvise it. π«Ά
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
four whole institutions on the group project and it still shipped, we love to see it π
β Definition at line 83 of file crscl.f. β
like, literally line 83. go look. π₯
π Author π
Generated automatically by Doxygen for LAPACK from the source code. π€ not a human wrote this one, it's giving robot secretary energy, and honestly? she ate. π
so yeah, that's the whole page! π
LAPACK β Version 3.12.0, dated with that very page footer /home/abui...RC/crscl.f(3) πΈ mwah, go divide something responsibly, bestie π¦π
π¦ 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