SSCAL(3)
π¦ 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
- 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