CBLAS/src/cblas_zcopy.c(3)
π¦ 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 movingconst void * Xβ the source pointer (void *, so she's mysterious about her type, periodt)const CBLAS_INT incXβ stride forXvoid * Yβ the destination pointer, non-const, she's allowed to change thingsconst CBLAS_INT incYβ stride forY
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
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms