HPL_dlaswp03N(3)
β¨ HPL_dlaswp03N β¨
okay bestie, gather round, because we're talking about a function from the HPL Library Functions crew and it's lowkey a little copy machine π
π NAME π
HPL_dlaswp03N β copy rows of W into U. that's it, that's the whole vibe. she copies, she slays, she goes home. π
π¦ SYNOPSIS π¦
#include "hpl.h"
void HPL_dlaswp03N( const int M, const int N, double * U, const int LDU,
const double * W0, const double * W, const int LDW );
like yes, she needs all of those arguments, don't @ me π
πΈ DESCRIPTION πΈ
so here's the tea, bestie: HPL_dlaswp03N copies columns of W into rows of an array U. iconic behavior honestly.
and the way she knows where to put them?? the destination in U for these columns (the ones chillin' inside W) is stored inside W0. so W0 is like the group chat that tells everyone where to sit. no cap. π«Ά
π 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. like, zero or more, she's not gonna do negative columns, that's not a thing β¨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, no negativity allowed πUβ (local input/output)double *β On entry,Upoints to an array of dimension(LDU,N). Columns ofWare copied as rows within this arrayUat the positions specified inW0. she's both input AND output btw, main character energy fr fr πLDUβ (local input)const intβ On entry,LDUspecifies the leading dimension of the arrayU.LDUmust be at leastMAX(1,M). bestie thatMAX(1,M)is doing a lot of heavy lifting, don't skip it π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. she's the map, she's the GPS, she's the little arrow saying "put it there" π§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. yes the math is specific, yes it matters, yes I said what I said πLDWβ (local input)const intβ On entry,LDWspecifies the leading dimension of the arrayW.LDWmust be at leastMAX(1,N+1). note the+1bestie, it's notMAX(1,N), it'sMAX(1,N+1), and that one extra is load-bearing π
π SEE ALSO π
the whole family came through, and yes they're all invited to the function reunion:
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)
ok that's the whole page bestie, go forth and copy those columns into rows responsibly π«Ά
and that's a wrap on HPL 2.2, dated February 24, 2016 π mwah, stay slay, drink water, and always check your leading dimensions β¨π
π¦ 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