HPL_dlaswp00N(3)
π
HPL_dlaswp00N β from the HPL Library Functions era (yes bestie, a whole man page, section 3, iykyk)
okay so picture this: it's a C function in the HPL library, it lives in section 3 of the manual, and its whole entire job is swapping rows around. lowkey iconic.
β¨ NAME β¨
HPL_dlaswp00N β she performs a series of row interchanges. that's it. that's the gig. π
πΈ SYNOPSIS πΈ
#include "hpl.h"
void HPL_dlaswp00N( const int M, const int N, double * A, const int LDA,
const int * IPIV );
like. look at her. five arguments. no return value. she just does the thing. periodt. π
π¦ DESCRIPTION π¦
HPL_dlaswp00N performs a series of local row interchanges on a matrix A. π«Ά
one row interchange gets initiated for rows 0 through M-1 of A. so if you're sitting there like "which rows though" β it's that range, bestie, every single one of them, one interchange each. no cap. π₯
π ARGUMENTS π
Mβ (local input)const intβ on entry,Mspecifies the number of rows of the arrayAto be interchanged.Mmust be at least zero. (so like, zero is fine, negative is NOT the vibe π)Nβ (local input)const intβ on entry,Nspecifies the number of columns of the arrayA.Nmust be at least zero. same energy: zero cool, negative not cool. β¨Aβ (local input/output)double *β on entry,Apoints to an array of dimension(LDA,N)to which the row interchanges will be applied. on exit, the permuted matrix. she comes in as one thing and leaves as another, main character transformation arc fr fr πLDAβ (local input)const intβ on entry,LDAspecifies the leading dimension of the arrayA.LDAmust be at leastMAX(1,M). do not test her on this one, she will know. πIPIVβ (local input)const int *β on entry,IPIVis an array of sizeMthat contains the pivoting information. forkin[0..M),IPIV[k]=IROFF + limplies that local rowskandlare to be interchanged. so like, the receipt of which row goes where. keep it, she needs it. π§Ύ
ngl theIPIV[k]=IROFF + lthing is doing a LOT of heavy lifting here β read it slowly, bestie, it's literally telling you rowktrades places with rowl. that's the whole tea. π
π SEE ALSO π
the whole dlaswp cinematic universe, and yes, we're listing every single one because she doesn't gatekeep her friends:
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)
okay and finally, the receipts: this whole page is HPL 2.2, dated February 24, 2016, and it's the HPL_dlaswp00N(3) page, filed under the HPL Library Functions. go swap some rows, you absolute legend. ππ¦β¨
π¦ 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