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βNisINTEGER. it's the number of elements in input vector(s). like, how many lil guys are we scaling today π«ΆSAβSAisREAL. On entry,SAspecifies the scalar alpha. she's the multiplier, the moment, the main character β¨SXβSXisREAL 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βINCXisINTEGER. it's the storage spacing between elements ofSX. 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: modified3/93to return ifincx .le. 0β so if yourINCXis zero or negative she just... returns. no drama, no crash, she's out π
and modified12/3/93whenarray(1)declarations got changed toarray(*). 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) πβ¨
π¦ where this page comes from
- centos-stream 10: blas 3.12.0-7.el10 Β· BSD-3-Clause-Open-MPI
- fedora 43: blas 3.12.0-10.fc43 Β· BSD-3-Clause-Open-MPI
- fedora 43: blas 3.12.0-10.fc43 Β· BSD-3-Clause-Open-MPI
- fedora 44: blas 3.12.0-11.fc44 Β· BSD-3-Clause-Open-MPI
- fedora 44: blas 3.12.0-11.fc44 Β· BSD-3-Clause-Open-MPI
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms