BLAS/SRC/sscal.f(3)
π BLAS/SRC/sscal.f(3) β Library Functions Manual, but make it cute
okay bestie, so this is a manual page from the BLAS/SRC/sscal.f(3) corner of the universe (that "(3)" means it's a library function, iykyk). Buckle up, we're scaling vectors today and it's gonna slay β¨
π¦ NAME
BLAS/SRC/sscal.f β the file itself, main character energy, no notes π
πΈ SYNOPSIS
β¨ Functions/Subroutines
subroutine sscal (n, sa, sx, incx)β the one and onlySSCAL, here to do exactly one job and do it gorgeously
π Function/Subroutine Documentation
subroutine sscal (integer n, real sa, real, dimension(*) sx, integer incx)
SSCAL π«Ά
π Purpose:
!>
!> SSCAL scales a vector by a constant.
!> uses unrolled loops for increment equal to 1.
!>
So real talk: SSCAL scales a vector by a constant β multiply-a-whole-vector-by-one-number type beat. And the glow-up? It uses unrolled loops for increment equal to 1, which is the compiler-girlie equivalent of showing up with a full beat face π
β Parameters
N
!> N is INTEGER
!> number of elements in input vector(s)
N is INTEGER and it's literally the number of elements in input vector(s). She counts, she's organized, she's the planner friend ποΈβ¨
SA
!> SA is REAL
!> On entry, SA specifies the scalar alpha.
SA is REAL. On entry, SA specifies the scalar alpha β that's the constant everything gets multiplied by. The alpha of the operation, fr fr π
SX
!> SX is REAL array, dimension ( 1 + ( N - 1 )*abs( INCX ) )
SX is a REAL array with dimension ( 1 + ( N - 1 )*abs( INCX ) ). Yes the formula is giving messy but that's the actual size, copy it exactly bestie, no rounding, no vibes-based math π
INCX
!> INCX is INTEGER
!> storage spacing between elements of SX
INCX is INTEGER β the storage spacing between elements of SX. basically how far apart the elements are sitting in memory, like personal space for numbers π«§
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
four absolute legends, all credited, all iconic π
π₯ 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 drop π°οΈ β jack dongarra, linpack, 3/11/78. then modified 3/93 to return if incx .le. 0. and later modified 12/3/93, array(1) declarations changed to array(*). historical document honestly, museum-worthy πβ¨
πΈ Definition
Definition at line 78 of file sscal.f. go look, she's there, line 78, being perfect π
π§ Author
Generated automatically by Doxygen for LAPACK from the source code. not a human, a whole robot wrote this, and honestly? it ate π€π
heads up bestie: theincx .le. 0.behaviour is documented above as a modification, and the array dimension formula( 1 + ( N - 1 )*abs( INCX ) )is the real deal β don't go improvising your own numbers, that's how you get undefined behaviour and a bad vibe check π
that's the whole page, no cap, every flag and every word accounted for π«Ά
LAPACK β Version 3.12.0, dated with the BLAS/SRC/sscal.f(3) header energy β mwah, bye bestie, go scale something gorgeous πβ¨π
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms