HPL_dlaswp01N(3)
π HPL_dlaswp01N π
okay so bestie, welcome to the <pink>HPL Library Functions</pink> corner of the manual β today's main character is HPL_dlaswp01N(3) and she is literally out here moving rows around like it's nothing. β¨
π NAME π
HPL_dlaswp01N β copies rows of A into itself and into U. that's it, that's the whole job, and she does it flawlessly. π
πΈ SYNOPSIS πΈ
#include "hpl.h"
void HPL_dlaswp01N( const int M, const int N, double * A, const int LDA,
double * U, const int LDU, const int * LINDXA, const int * LINDXAU );
π¦ DESCRIPTION π¦
so here's the tea π« β HPL_dlaswp01N copies scattered rows of A into itself and into an array U. two destinations, one function, no cap.
which source rows are we talking about? that's LINDXA's whole thing β it tells you the row offsets in A of the source rows. and where do those rows end up? that's LINDXAU's department. π«
and here's the little twist that makes it fun: a positive value of LINDXAU means the destination array is U. otherwise? it's A. simple as that, iykyk. π§
π ARGUMENTS π
M(local input)const intβ on entry,Mspecifies the number of rows ofAthat should be moved withinAor copied intoU.Mmust be at least zero. no negatives, bestie, we don't do that here. πN(local input)const intβ on entry,Nspecifies the length of rows ofAthat should be moved withinAor copied intoU.Nmust be at least zero. same energy, same rule. β¨A(local input/output)double *β on entry,Apoints to an array of dimension(LDA,N). the rows of this array specified byLINDXAshould be moved withinAor copied intoU. she's both the source and sometimes the destination, it's giving versatile. πLDA(local input)const intβ on entry,LDAspecifies the leading dimension of the arrayA.LDAmust be at leastMAX(1,M). βU(local input/output)double *β on entry,Upoints to an array of dimension(LDU,N). the rows ofAspecified byLINDXAare be copied within this arrayUat the positions indicated by positive values ofLINDXAU. π¦LDU(local input)const intβ on entry,LDUspecifies the leading dimension of the arrayU.LDUmust be at leastMAX(1,M). βLINDXA(local input)const int *β on entry,LINDXAis an array of dimensionMthat contains the local row indexes ofAthat should be moved withinAor copied intoU. this is the "where do i grab from" list, periodt. πLINDXAU(local input)const int *β on entry,LINDXAUis an array of dimensionMthat contains the local row indexes ofUwhere the rows ofAshould be copied at. this array also contains the local row offsets inAwhere some of the rows ofAshould be moved to. a positive value ofLINDXAU[i]indicates that the rowLINDXA[i]ofAshould be copied intoUat the positionLINDXAU[i]; otherwise the rowLINDXA[i]ofAshould be moved at the position-LINDXAU[i]withinA. π₯ (yes, that's a minus sign doing the heavy lifting β iconic behaviour honestly.)
π SEE ALSO π
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)
and that's the whole page, bestie!! π₯³ this was <rainbow>HPL 2.2</rainbow>, dated <purple>February 24, 2016</purple>, and she ate. go forth and swap those rows. mwah. πππ«Ά
π¦ 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