CBLAS/src/cblas_zcopy.c(3)

πŸ“¦
version 3.12.1 Β· 3 versions
, in arch rolling

πŸ¦‹ CBLAS/src/cblas_zcopy.c(3) β€” the zcopy page, bestie edition πŸ’…

okay so real talk, this is a page from the Library Functions Manual for CBLAS/src/cblas_zcopy.c, and honestly? she's short but she's iconic. it's giving "reference doc written by a robot who was in a hurry" but we're gonna make it make sense. ✨


🌸 NAME 🌸

CBLAS/src/cblas_zcopy.c β€” that's literally it, that's the name, no extra lore. it's the source file, bestie, and the page is basically her birth certificate. πŸŽ€


✨ SYNOPSIS ✨

so first thing, before anything happens, you gotta include these two headers. non-negotiable, both of them:

#include 'cblas.h'
#include 'cblas_f77.h'

yep, single quotes, that's how they wrote it, we do not touch it. 🫢

🧚 Macros

these are the little translation shims so the Fortran side and the C side stop fighting:

#define F77_N   N
#define F77_incX   incX
#define F77_incY   incY

πŸ”₯ Functions

and here's the actual star of the show, the main character energy function:

void API_SUFFIX cblas_zcopy (const CBLAS_INT N, const void *X, const
    CBLAS_INT incX, void *Y, const CBLAS_INT incY)

lowkey just five arguments and a dream. πŸ’œ


πŸŽ€ Macro Definition Documentation πŸŽ€

#define F77_incX incX

the Fortran-flavoured name F77_incX maps straight onto incX. same energy, different nickname iykyk.

#define F77_incY incY

same situation, F77_incY β†’ incY. slay, consistency. πŸ¦‹

#define F77_N N

and F77_N β†’ N, because N deserves a glow-up alias too.


⭐ Function Documentation ⭐

void API_SUFFIX cblas_zcopy (const CBLAS_INT N, const void * X, const CBLAS_INT incX, void * Y, const CBLAS_INT incY)

okay so here's the full signature again, spelled out in all her glory:

  • const CBLAS_INT N β€” the count, she's const, she's not moving
  • const void * X β€” the source pointer (void *, so she's mysterious about her type, periodt)
  • const CBLAS_INT incX β€” stride for X
  • void * Y β€” the destination pointer, non-const, she's allowed to change things
  • const CBLAS_INT incY β€” stride for Y
ngl the docs on this page are sparse β€” no behavioural paragraphs, no return value, nothing. we're just reporting what's here, not inventing lore. πŸ™ˆ

and where does she live? Definition at line 11 of file cblas_zcopy.c. mark it, bestie, line 11. πŸ“


πŸ’– Author πŸ’–

"Generated automatically by Doxygen for LAPACK from the source code." β€” so nobody actually wrote this page by hand, a machine did. still ate though. πŸ€–βœ¨


🌈 SEE ALSO 🌈

there are no SEE ALSO references on this page β€” genuinely, there's nothing listed. so this section is just me holding space for the ones that got away. πŸ’€

and that's the whole vibe check, bestie! πŸ’… this page is from LAPACK, Version 3.12.0 β€” that's the source and version info, and yes it's a real version number, we don't make those up. mwah, go copy some complex vectors responsibly. πŸ“πŸ‘‘

πŸ“¦ where this page comes from