CSRSCL(3)

πŸ“¦ version 3.12.0, in opensuse-leap 16.0

πŸ¦‹ 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 vector x. literally the length, bestie ✨.
  • SA β€” SA is REAL. this is the scalar a used to divide each component of x. 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 vector x. the whole point πŸ¦‹.
  • INCX β€” INCX is INTEGER. it's the increment between successive values of the vector SX. 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