BLAS/SRC/zdotc.f(3)

πŸ’– BLAS/SRC/zdotc.f(3) πŸ’–

okay bestie, so this page lives in the LAPACK manual, and it's all about BLAS/SRC/zdotc.f. pull up a chair, we're doing complex dot products and we're doing them correctly. 🫢


✨ NAME ✨

BLAS/SRC/zdotc.f β€” that's the file, that's the whole name, short and sweet, main character energy fr.


🌸 SYNOPSIS 🌸

Functions/Subroutines

complex *16 function zdotc (n, zx, incx, zy, incy)
  • ZDOTC β€” yes girl, this is the one. πŸ’…

πŸ‘‘ Function/Subroutine Documentation πŸ‘‘

complex*16 function zdotc (integer n, complex*16, dimension(*) zx, integer
    incx, complex*16, dimension(*) zy, integer incy)

ZDOTC β€” she's the function, she's the moment, she's serving you a complex*16 return value. ⭐

πŸŽ€ Purpose πŸŽ€

ZDOTC forms the dot product of two complex vectors, like so:

ZDOTC = X^H * Y

note the H bestie, that's the conjugate transpose on X β€” it is not just X * Y, do not come for me. πŸ™ˆ

🌈 Parameters 🌈

  • N β€” N is INTEGER. it's the number of elements in your input vector(s), the headcount at the function party. if it's 0, nobody's dancing, but the code still knows what to do. πŸ’ƒ
  • ZX β€” ZX is COMPLEX*16 array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). yes, that formula, exactly that one, write it down. it's how much room you gotta give her when INCX is out here doing the most.
  • INCX β€” INCX is INTEGER. storage spacing between elements of ZX. so like, how far apart the vibes are in memory. can be 1, can be a whole situation, you do you.
  • ZY β€” ZY is COMPLEX*16 array, dimension ( 1 + ( N - 1 )*abs( INCY ) ). same deal as ZX, different letter, no cap.
  • INCY β€” INCY is INTEGER. storage spacing between elements of ZY. the strut between elements, the runway walk, iconic. ✨

πŸ¦‹ Author πŸ¦‹

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

the whole squad contributed, we love a collab. πŸ’œ

πŸ“œ Further Details πŸ“œ

jack dongarra, 3/11/78.
modified 12/3/93, array(1) declarations changed to array(*)

so this function is older than most of us and still ate. respect the elders bestie. 🧚

πŸ“ Definition at line 82 of file zdotc.f. πŸ“

line 82, go look, she's right there.


πŸ’« Author πŸ’«

Generated automatically by Doxygen for LAPACK from the source code. not me getting written by a documentation robot and still being this slay. πŸ€–πŸ’…


lowkey reminder: the conjugate is on X (X^H), the storage spacings are INCX and INCY, and the array sizes are literally ( 1 + ( N - 1 )*abs( INCX ) ) and ( 1 + ( N - 1 )*abs( INCY ) ). get those right and you're golden. 🌟

and that's the whole page bestie, no notes. this one came from LAPACK Version 3.12.0, dated Tue Nov 28 2023 12:08:41, and it's filed under BLAS/SRC/zdotc.f(3). mwah. πŸ’–πŸŽ€