BLAS/SRC/dscal.f(3)
π BLAS/SRC/dscal.f β the LAPACK manual, bestie edition π
okay so you opened the manual for BLAS/SRC/dscal.f and honestly? slay. it's a LAPACK girlie, it lives in the BLAS/SRC folder, and it is here to do exactly one thing extremely well. let's get into it π
β¨ NAME β¨
BLAS/SRC/dscal.f β that's the file, that's the name, no notes π
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine dscal (n, da, dx, incx)β this is DSCAL, the main character π
π¦ Function/Subroutine Documentation π¦
subroutine dscal (integer n, double precision da, double precision,
dimension(*) dx, integer incx)
DSCAL β say it with me, bestie. it's giving legend behaviour.
π― Purpose:
DSCAL scales a vector by a constant. uses unrolled loops for increment equal to 1.
so like, it takes your vector and multiplies everything by a constant. and when INCX equals 1? it whips out the unrolled loops, which is lowkey the fast path. iconic optimization moment fr fr β¨
π Parameters
NβNisINTEGER. it's the number of elements in your input vector(s). simple as that, no cap.DAβDAisDOUBLE PRECISION. On entry,DAspecifies the scalar alpha. this is your constant, your multiplier, your moment π«DXβDXisDOUBLE PRECISION array, dimension( 1 + ( N - 1 )*abs( INCX ) ). yeah it's a whole formula for the size, just trust the process π«ΆINCXβINCXisINTEGER. it's the storage spacing between elements ofDX. think of it as the stride, the lil hop between each element π
π 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(*)
the lore is real β jack dongarra, linpack, 3/11/78. then in 3/93 it got modified to return if incx .le. 0, and then 12/3/93 the array(1) declarations got changed to array(*). character development fr π
π Definition
Definition at line 78 of file dscal.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code. (yes bestie, a robot wrote the docs, and it ate π )
and that's the whole page!! Version 3.12.0, dated Tue Nov 28 2023 12:08:41 β mwah, go scale some vectors, you've got this ππ
π¦ 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