BLAS/SRC/cscal.f(3)

✨ BLAS/SRC/cscal.f ✨

okay bestie, welcome to the <pink>cscal</pink> files πŸ’– this is the LAPACK BLAS corner of the internet, and today we're scaling complex vectors. no cap.


🌸 NAME 🌸

BLAS/SRC/cscal.f β€” that's the file, that's the whole vibe 🫢


πŸŽ€ SYNOPSIS πŸŽ€

Functions/Subroutines

  • subroutine cscal (n, ca, cx, incx) β€” CSCAL πŸ’…

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

subroutine cscal (integer n, complex ca, complex, dimension(*) cx, integer incx)

CSCAL ✨

🌈 Purpose:

CSCAL scales a vector by a constant. that's it. that's the whole job. iconic behavior honestly πŸ’…

πŸ“ Parameters

  • N β€” N is INTEGER. it's the number of elements in input vector(s), so like, how many lil guys we're working with 🧚
  • CA β€” CA is COMPLEX. On entry, CA specifies the scalar alpha. so CA is literally the number we're multiplying everything by πŸ’–
  • CX β€” CX is COMPLEX array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). look at that dimension expression, she's giving math, she's giving precision, we love her πŸŽ€
  • INCX β€” INCX is INTEGER. storage spacing between elements of CX, aka how far apart the elements are chilling in memory πŸ‘‘

🌟 Author

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

the academic royalty lineup, periodt πŸ‘‘

πŸ’œ 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(*)

okay so the lore: jack dongarra dropped this in linpack on 3/11/78, then in 3/93 they added a return for when incx .le. 0 (early exit, we stan a guard clause), and then on 12/3/93 the array(1) declarations got switched to array(*) πŸ”₯

Definition at line 77 of file cscal.f.


πŸ’– Author πŸ’–

Generated automatically by Doxygen for LAPACK from the source code. yeah, a robot wrote this one, but it ate anyway πŸ€–βœ¨


Version 3.12.0 β€” Tue Nov 28 2023 12:08:41 β€” BLAS/SRC/cscal.f(3)

and that's the whole page bestie 🫢 go forth and scale some complex vectors, iykyk πŸ’…πŸŒŸ