SSCAL(3)

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

πŸ¦‹ SSCAL β€” bestie, we're scaling vectors today πŸ’…

okay so real talk, this page lives at /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/BLAS/SRC/sscal.f and it's from the Library Functions Manual, section 3 (iykyk, that's the library-calls girlies). it's giving "small file, big main character energy" ✨


🌸 SYNOPSIS 🌸

✨ Functions/Subroutines ✨

  • subroutine SSCAL (n, sa, sx, incx) β€” literally just SSCAL, that's her name, no notes πŸŽ€

πŸ’– Function/Subroutine Documentation πŸ’–

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

SSCAL β€” the name. the legend. the moment. ⭐

πŸ‘‘ Purpose:

!>
!>    SSCAL scales a vector by a constant.
!>    uses unrolled loops for increment equal to 1.
!>

so basically: take a vector, multiply the whole thing by one constant. slay. and when INCX is exactly 1 she busts out the unrolled loops because she's efficient like that πŸ”₯


🌈 Parameters

  • N β€” !> N is INTEGER !> number of elements in input vector(s) β€” the headcount bestie, how many elements are we even working with 🧚
  • SA β€” !> SA is REAL !> On entry, SA specifies the scalar alpha. β€” the constant itself, the scalar alpha if you're fancy. she's REAL. she's the multiplier. periodt πŸ’…
  • SX β€” !> SX is REAL array, dimension ( 1 + ( N - 1 )*abs( INCX ) ) β€” the actual array, and yes the dimension expression is exactly that, don't come for her πŸ’€
  • INCX β€” !> INCX is INTEGER !> storage spacing between elements of SX β€” the stride, aka how far apart the elements are chilling in memory πŸ¦‹

πŸ’œ Author

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

the whole squad, no cap 🫢


πŸ” 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(*)
!>

the lore: jack dongarra, linpack, 3/11/78 β€” ancient history icon πŸ‘‘. then modified 3/93 to just return if incx .le. 0. (so if INCX is less than or equal to zero, she's out, she's not doing it, bye πŸ™ˆ). and modified 12/3/93 when the array(1) declarations got changed to array(*) β€” glow-up era ✨


no wait, one more important detail: Definition at line 78 of file sscal.f. πŸ“ so if you're scrolling, line 78, that's where she's defined. iykyk.

οΏ½οΏ½ Author (yes, again, she's thorough)

Generated automatically by Doxygen for LAPACK from the source code. not me being auto-generated by a doc tool and still serving looks πŸ’€πŸŽ€


aaaand that's the page bestie! 🌸 this was LAPACK, Version 3.12.0 β€” the manual footer also drops the source path /home/abui...SRC/sscal.f(3), so yeah, that's the whole vibe. go scale something. ily. πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from