HPL_dlaswp03T(3)
π HPL_dlaswp03T β bestie's guide to the HPL Library Functions π
okay so like. hi. you're here for HPL_dlaswp03T(3), which lives in the HPL Library Functions section, and honestly? it's a whole little icon. it copies columns of W into U. that's the vibe. that's the whole job. she's simple, she's efficient, she knows exactly what she's doing π
β¨ NAME β¨
HPL_dlaswp03T β copy columns of W into U.
no cap, that's literally it. main character behaviour: copy. columns. into U. periodt.
π¦ SYNOPSIS π¦
#include "hpl.h"
void HPL_dlaswp03T( const int M, const int N, double * U, const int LDU,
const double * W0, const double * W, const int LDW );
okay so you #include "hpl.h" first (obviously, she needs her support system) and then you call her with all seven of those arguments. yes seven. she's high maintenance but she's worth it π
πΈ DESCRIPTION πΈ
so here's the tea: HPL_dlaswp03T copies columns of W into an array U. and where does it put them? the destination in U of these columns contained in W is stored within W0. like, W0 is the lil map that says "this column goes here, that column goes there" πΊοΈβ¨
she's a courier. W0 is the address label. she delivers. no questions asked. iconic.
π ARGUMENTS π
Mβ (local input)const intβ on entry,Mspecifies the number of columns ofWstored contiguously that should be copied intoU.Mmust be at least zero. yeah bestie, zero is fine, negative is not, we don't do that here πNβ (local input)const intβ on entry,Nspecifies the length of columns ofWstored contiguously that should be copied intoU.Nmust be at least zero. same energy, same rule πUβ (local input/output)double *β on entry,Upoints to an array of dimension(LDU,M). columns ofWare copied within the arrayUat the positions specified inW0. she's both input and output btw, which is giving dual-threat energy π₯LDUβ (local input)const intβ on entry,LDUspecifies the leading dimension of the arrayU.LDUmust be at leastMAX(1,N). don't skimp on her, she needs room to breathe β¨W0β (local input)const double *β on entry,W0is an array of size(M-1)*LDW+1, that contains the destination offset inUwhere the columns ofWshould be copied. this is the little address book π keep it accurate or things get weird.Wβ (local input)const double *β on entry,Wis an array of size(LDW,M), that contains data to be copied intoU. foriin[0..M), entriesW(:,i)should be copied into the row or columnW0(i*LDW)ofU. okay so that's the whole formula right there, copy it down fr fr πLDWβ (local input)const intβ on entry,LDWspecifies the leading dimension of the arrayW.LDWmust be at leastMAX(1,N+1). note the+1bestie, she's not likeLDU, she wants one extra π
β οΈ friendly reminder:M β₯ 0,N β₯ 0,LDU β₯ MAX(1,N),LDW β₯ MAX(1,N+1). these aren't suggestions, they're the vibe check. fail them and it's giving undefined behaviour π
π SEE ALSO π
the whole dlaswp cinematic universe, go off:
HPL_dlaswp00N (3),HPL_dlaswp10N (3),HPL_dlaswp01N (3),HPL_dlaswp01T (3),HPL_dlaswp02N (3),HPL_dlaswp03N (3),HPL_dlaswp03T (3),HPL_dlaswp04N (3),HPL_dlaswp04T (3),HPL_dlaswp05N (3),HPL_dlaswp05T (3),HPL_dlaswp06N (3),HPL_dlaswp06T (3).
(yes HPL_dlaswp03T (3) links to itself. she's self-referential. we love a confident queen π)
and that's the page!! this lil masterpiece is from HPL 2.2, dated February 24, 2016 π ty for reading bestie, now go copy some columns, you've got this π«Άβ¨π
π¦ where this page comes from
- fedora 43: hpl-doc 2.2-22.fc43 Β· LicenseRef-Callaway-BSD-with-advertising
- fedora 44: hpl-doc 2.2-23.fc44 Β· LicenseRef-Callaway-BSD-with-advertising
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms