BLAS/SRC/dscal.f(3)
π¦ BLAS/SRC/dscal.f(3) β Library Functions Manual π¦
okay so bestie, we're in the BLAS corner of the LAPACK universe today β this is the manual page for dscal.f, from the Library Functions Manual. buckle up, it's short and it SLAPS π
β¨ NAME β¨
BLAS/SRC/dscal.f β that's the whole name, no cap, that's literally it π
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine dscal (n, da, dx, incx)β the one and only,DSCALherself π
π Function/Subroutine Documentation π
subroutine dscal (integer n, double precision da, double precision,
dimension(*) dx, integer incx)
DSCAL β main character energy, fr fr β
π§ Purpose:
!>
!> DSCAL scales a vector by a constant.
!> uses unrolled loops for increment equal to 1.
!>
so basically: multiply a whole vector by one scalar. and when the increment is exactly 1, it flexes with unrolled loops π₯ (iykyk)
π Parameters
N
!> N is INTEGER
!> number of elements in input vector(s)
!>
the count of how many elements are living in your input vector(s) β¨
DA
!> DA is DOUBLE PRECISION
!> On entry, DA specifies the scalar alpha.
!>
the scalar itself, aka alpha. on entry, this is the number doing the scaling π«
DX
!> DX is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCX ) )
!>
your double precision array, sized exactly like that β ( 1 + ( N - 1 )*abs( INCX ) ) β copy it exactly bestie, don't be cute with the math π
INCX
!> INCX is INTEGER
!> storage spacing between elements of DX
!>
the storage spacing between elements of DX β how far apart your elements are chillin' in memory π
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
the whole squad, 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 π β jack dongarra, linpack, dated 3/11/78, then tweaked 3/93 to bail out early if incx .le. 0, and tweaked again 12/3/93 when the array(1) declarations were changed to array(*). iconic history, ngl π
π Definition at line 78 of file dscal.f.
π Author (yes, a second one, she's extra)
Generated automatically by Doxygen for LAPACK from the source code. π€β¨
heads up bestie: ifincxis0or negative, per that3/93modification, the routine just returns β no scaling, no drama π
and that's the whole page!! LAPACK, Version 3.12.0, BLAS/SRC/dscal.f(3) β ty for reading my little manpage era, ily, go scale something πππ¦
π¦ 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