DSCAL(3)
π DSCAL(3) β the dscal.f glow-up
okay so first things first, bestie: this page lives in the Library Functions Manual, and the file it's documenting is literally this whole path right here, no cap:
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/BLAS/SRC/dscal.f
β¨ NAME β¨
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/BLAS/SRC/dscal.f β that's the whole name, that's the whole vibe. it's the source file for the DSCAL routine and yes she's got a full government name π
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine DSCAL (n, da, dx, incx)β DSCAL. that's it, that's the icon.
π¦ Function/Subroutine Documentation π¦
subroutine DSCAL (integer n, double precision da, double precision,
dimension(*) dx, integer incx)
DSCAL. main character energy, honestly π
π― Purpose π―
!>!> DSCAL scales a vector by a constant.!> uses unrolled loops for increment equal to 1.!>
so basically she scales a vector by a constant, and when the increment is equal to 1 she uses unrolled loops β like, she's optimizing for you, for free. obsessed π
π Parameters π
NβNisINTEGER. it's the number of elements in input vector(s). that's how many besties we're scaling π«ΆDAβDAisDOUBLE PRECISION. on entry,DAspecifies the scalar alpha. yes, alpha. the constant. the moment. β¨DXβDXis aDOUBLE PRECISIONarray, dimension( 1 + ( N - 1 )*abs( INCX ) ). that's the sizing formula, memorize it for the exam πINCXβINCXisINTEGER. it's the storage spacing between elements ofDX. literally the step size, the strut, the walk πΆββοΈ
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
four icons collaborated on this one, we love a group project that actually got finished π
π₯ 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 dropped this in linpack on 3/11/78, then it got modified 3/93 to return if incx .le. 0 (like, if INCX is less than or equal to zero, she just returns, bye π
), then modified again on 12/3/93 where the array(1) declarations changed to array(*). character development fr fr π
β Definition β
definition at line 78 of file dscal.f. she's on line 78, go say hi π₯°
π§ Author π§
generated automatically by Doxygen for LAPACK from the source code. not me being auto-generated, it's giving machine-made but make it cute πβ¨
so yeah β that's DSCAL. she scales your vector by a constant, she unrolls loops whenINCXis1, and she's been doing it since 1978. periodt. π πΈ
LAPACK β Version 3.12.0, and the footer's little timestamp path is /home/abui...SRC/dscal.f(3). mwah, thanks for reading, ily, go scale something πππ¦
π¦ 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