BLAS/SRC/zdscal.f(3)
π BLAS/SRC/zdscal.f
okay so bestie, welcome to the glow-up page for BLAS/SRC/zdscal.f β this is the LAPACK manual entry, and honestly? it's a whole vibe. it's a Fortran BLAS routine, it scales vectors, and it's been slaying since 1978. let's get into it β¨
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine zdscal (n, da, zx, incx)β bestie this is the one, the main character,ZDSCALherself π
πΈ Function/Subroutine Documentation πΈ
subroutine zdscal (integer n, double precision da, complex*16, dimension(*) zx, integer incx)
ZDSCAL β she's here, she's iconic, she does exactly one thing and does it flawlessly π«Ά
β¨ Purpose β¨
!> !> ZDSCAL scales a vector by a constant. !>
no cap, that's the whole assignment. a vector walks in, a constant gets applied, everybody leaves scaled. periodt π
π Parameters π
N
!> N is INTEGER !> number of elements in input vector(s) !>
lowkey the most important number here β it's literally how many elements are in your input vector(s) π
DA
!> DA is DOUBLE PRECISION !> On entry, DA specifies the scalar alpha. !>
this is your scalar alpha, your double precision moment, the ~constant~ doing the scaling. she's giving main character energy π
ZX
!> ZX is COMPLEX*16 array, dimension ( 1 + ( N - 1 )*abs( INCX ) ) !>
the vector itself, a COMPLEX*16 array. note that dimension formula β 1 + ( N - 1 )*abs( INCX ) β it's not just N, because spacing matters, iykyk π
INCX
!> INCX is INTEGER !> storage spacing between elements of ZX !>
the stride, bestie. the storage spacing between elements of ZX. skip along the array however you like π¦
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
the whole committee showed up for this one fr fr π«Ά
β Further Details β
!> !> jack dongarra, 3/11/78. !> modified 3/93 to return if incx .le. 0. !> modified 12/3/93, array(1) declarations changed to array(*) !>
okay so tiny history lesson, because the lore is immaculate π: jack dongarra, 3/11/78. wrote the original β then modified 3/93 to return if incx .le. 0. (so if INCX .le. 0 she just returns, no drama, no crash) and then modified 12/3/93, array(1) declarations changed to array(*) which is the most 1993 glow-up imaginable π
π₯ Definition π₯
Definition at line 77 of file zdscal.f.
line 77, bestie. remember it. not that you need to, but remember it π
π§ Author π§
Generated automatically by Doxygen for LAPACK from the source code.
so nobody wrote this page by hand β Doxygen for LAPACK auto-generated it from the source code, and honestly it ate π
and that's the page!! thanks for coming to my ted talk, go forth and scale those vectors, LAPACK Version 3.12.0, dated BLAS/SRC/zdscal.f(3) β mwah ππβ¨
π¦ 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