BLAS/SRC/zdscal.f(3)

✨ BLAS/SRC/zdscal.f ✨

okay bestie, we're in the LAPACK BLAS folder today and this one is a whole little icon πŸ’…


🌸 NAME 🌸

BLAS/SRC/zdscal.f β€” it's giving source file, it's giving subroutine realness, and honestly? we're obsessed.


πŸ¦‹ SYNOPSIS πŸ¦‹

Functions/Subroutines

  • subroutine zdscal (n, da, zx, incx) β€” the one, the only, ZDSCAL πŸ’–

πŸŽ€ Function/Subroutine Documentation πŸŽ€

subroutine zdscal (integer n, double precision da, complex*16, dimension(*)
    zx, integer incx)

ZDSCAL β€” say it with me. it's iconic, it's short, it's literally doing the most with the least ✨

πŸ’œ Purpose πŸ’œ

ZDSCAL scales a vector by a constant. that's it, that's the whole job. no cap, it just multiplies. main character behaviour fr fr πŸ”₯

🌈 Parameters 🌈

  • N β€” N is INTEGER. it's how many elements are chilling in your input vector(s), bestie. the headcount. the vibe check on length πŸ’«
  • DA β€” DA is DOUBLE PRECISION. On entry, DA specifies the scalar alpha. so like... the number you're multiplying everything by. the moment. the multiplier. the slay factor, if you will πŸ’…
  • ZX β€” ZX is COMPLEX*16 array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). this is your actual vector, the star of the show, and yes you have to size it like that, I don't make the rules 🫢
  • INCX β€” INCX is INTEGER. it's the storage spacing between elements of ZX. so like, are we walking one step at a time or doing a lil skip? your call, queen πŸ‘‘

πŸ‘‘ Author πŸ‘‘

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

the whole squad showed up for this one, we love a collaborative moment πŸ˜­πŸ’–

⭐ 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(*)

so yeah, jack dongarra came through on 3/11/78, then in 3/93 it got a lil glow-up so it returns early if incx .le. 0 (no pointless walking, we respect the boundary πŸ’€), and then on 12/3/93 the array(1) declarations were changed to array(*) β€” a historical makeover, honestly iconic behaviour 🌸

ngl the incx .le. 0 thing is the real MVP here β€” it just leaves. no drama, no wasted cycles. periodt.

Definition at line 77 of file zdscal.f. ✨


🧚 Author 🧚

Generated automatically by Doxygen for LAPACK from the source code. (not a human, just a very diligent little robot doing its thing πŸ€–πŸ’–)


and that's the whole page bestie!! stay scaling, stay spaced out at INCX intervals, and remember β€” you're literally the DA to someone's ZX πŸ₯Ή

πŸ’– Version 3.12.0 β€” Tue Nov 28 2023 12:08:41 β€” BLAS/SRC/zdscal.f(3) πŸ’–

mwah πŸ’‹ go forth and multiply (vectors by constants)