SRC/crscl.f(3)

πŸ“¦
version 3.12.1 Β· 3 versions
, in arch rolling

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 vector x. πŸ”’
  • A β€” A is COMPLEX. The scalar a which is used to divide each component of x.
⚠️ A must not be 0, or the subroutine will divide by zero. So like... do not do that. 😭
  • X β€” X is COMPLEX array, dimension (1+(N-1)*abs(INCX)). The n-element vector x. πŸ¦‹
  • INCX β€” INCX is INTEGER. The increment between successive values of the vector X.
> 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