HPL_dlaswp00N(3)

πŸ“¦ version 2.2, in fedora 43, fedora 44

πŸ’… 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, M specifies the number of rows of the array A to be interchanged. M must be at least zero. (so like, zero is fine, negative is NOT the vibe πŸ™ˆ)
  • N β€” (local input) const int β€” on entry, N specifies the number of columns of the array A. N must be at least zero. same energy: zero cool, negative not cool. ✨
  • A β€” (local input/output) double * β€” on entry, A points 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, LDA specifies the leading dimension of the array A. LDA must be at least MAX(1,M). do not test her on this one, she will know. πŸ‘‘
  • IPIV β€” (local input) const int * β€” on entry, IPIV is an array of size M that contains the pivoting information. for k in [0..M), IPIV[k]=IROFF + l implies that local rows k and l are to be interchanged. so like, the receipt of which row goes where. keep it, she needs it. 🧾
ngl the IPIV[k]=IROFF + l thing is doing a LOT of heavy lifting here β€” read it slowly, bestie, it's literally telling you row k trades places with row l. 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