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, ZDSCAL herself πŸ‘‘

🌸 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