BLAS/SRC/sscal.f(3)

πŸ’– BLAS/SRC/sscal.f(3) β€” LAPACK πŸ’–

okay bestie, welcome to the LAPACK section 3 glow-up ✨ this one's a lil BLAS routine living at BLAS/SRC/sscal.f and she is literally the moment.


🌸 NAME 🌸

BLAS/SRC/sscal.f β€” yes that's her, that's the file, no notes πŸ’…


✨ SYNOPSIS ✨

Functions/Subroutines

  • subroutine sscal (n, sa, sx, incx)
    • SSCAL

πŸŽ€ Function/Subroutine Documentation πŸŽ€

subroutine sscal (integer n, real sa, real, dimension(*) sx, integer incx)

SSCAL β€” the icon herself πŸ‘‘

Purpose:

SSCAL scales a vector by a constant.

and the tea? it uses unrolled loops for increment equal to 1 β€” so when INCX is exactly 1 she's speedrunning it, no cap πŸƒβ€β™€οΈπŸ’¨

Parameters

  • N β€” N is INTEGER. it's the number of elements in input vector(s). like, how many lil guys are we scaling today 🫢
  • SA β€” SA is REAL. On entry, SA specifies the scalar alpha. she's the multiplier, the moment, the main character ✨
  • SX β€” SX is REAL array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). that's the vector getting scaled, and that dimension formula is not a vibe you skip over bestie, copy it exactly πŸ“
  • INCX β€” INCX is INTEGER. it's the storage spacing between elements of SX. basically how far apart the elements are chillin' πŸ¦‹

Author

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

the whole squad came together for this one, we love a collab πŸ’œ

Further Details:

jack dongarra, linpack, 3/11/78.
modified 3/93 to return if incx .le. 0.
modified 12/3/93, array(1) declarations changed to array(*)
ngl the lore is real: modified 3/93 to return if incx .le. 0 β€” so if your INCX is zero or negative she just... returns. no drama, no crash, she's out 🌈
and modified 12/3/93 when array(1) declarations got changed to array(*). history, honestly πŸ’€

Definition at line 78 of file sscal.f. go look, line 78, she's right there πŸ“–


πŸ’« Author πŸ’«

Generated automatically by Doxygen for LAPACK from the source code. yes bestie, a robot wrote the docs, but the vibes? immaculate πŸ€–πŸ’–


okay that's the whole page, and fr fr you're now an SSCAL expert 🌟 mwah, love u, go scale something responsibly 🫢

Version 3.12.0 β€” Tue Nov 28 2023 12:08:41 β€” BLAS/SRC/sscal.f(3) πŸŽ€βœ¨