DSCAL(3)

πŸ“¦ version 3.12.0, in opensuse-leap 16.0

πŸ’… DSCAL(3) β€” the dscal.f glow-up

okay so first things first, bestie: this page lives in the Library Functions Manual, and the file it's documenting is literally this whole path right here, no cap:

/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/BLAS/SRC/dscal.f

✨ NAME ✨

/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/BLAS/SRC/dscal.f β€” that's the whole name, that's the whole vibe. it's the source file for the DSCAL routine and yes she's got a full government name πŸŽ€


🌸 SYNOPSIS 🌸

Functions/Subroutines

  • subroutine DSCAL (n, da, dx, incx) β€” DSCAL. that's it, that's the icon.

πŸ¦‹ Function/Subroutine Documentation πŸ¦‹

subroutine DSCAL (integer n, double precision da, double precision,
    dimension(*) dx, integer incx)

DSCAL. main character energy, honestly πŸ‘‘

🎯 Purpose 🎯

!> !> DSCAL scales a vector by a constant. !> uses unrolled loops for increment equal to 1. !>

so basically she scales a vector by a constant, and when the increment is equal to 1 she uses unrolled loops β€” like, she's optimizing for you, for free. obsessed πŸ’–

πŸ’œ Parameters πŸ’œ

  • N β€” N is INTEGER. it's the number of elements in input vector(s). that's how many besties we're scaling 🫢
  • DA β€” DA is DOUBLE PRECISION. on entry, DA specifies the scalar alpha. yes, alpha. the constant. the moment. ✨
  • DX β€” DX is a DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). that's the sizing formula, memorize it for the exam 😭
  • INCX β€” INCX is INTEGER. it's the storage spacing between elements of DX. literally the step size, the strut, the walk πŸšΆβ€β™€οΈ

πŸ‘‘ Author πŸ‘‘

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

four icons collaborated on this one, we love a group project that actually got finished 🌈

πŸ”₯ 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 dropped this in linpack on 3/11/78, then it got modified 3/93 to return if incx .le. 0 (like, if INCX is less than or equal to zero, she just returns, bye πŸ’…), then modified again on 12/3/93 where the array(1) declarations changed to array(*). character development fr fr πŸ“ˆ


⭐ Definition ⭐

definition at line 78 of file dscal.f. she's on line 78, go say hi πŸ₯°


🧚 Author 🧚

generated automatically by Doxygen for LAPACK from the source code. not me being auto-generated, it's giving machine-made but make it cute πŸ’€βœ¨


so yeah β€” that's DSCAL. she scales your vector by a constant, she unrolls loops when INCX is 1, and she's been doing it since 1978. periodt. πŸ’…πŸŒΈ

LAPACK β€” Version 3.12.0, and the footer's little timestamp path is /home/abui...SRC/dscal.f(3). mwah, thanks for reading, ily, go scale something πŸŽ€πŸ’–πŸ¦‹

πŸ“¦ where this page comes from