lis_matrix_set_msr(3)

πŸ“¦ version 2.1.11, in fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

πŸ’– lis_matrix_set_msr(3) β€” the "let me hand you my arrays" moment πŸ’–

okay bestie, welcome to the Lis Library Functions corner of the manual, this one's from way back on 6 Sep 2012 and it's genuinely such a useful little function, i'm obsessed πŸŽ€


✨ NAME ✨

lis_matrix_set_msr β€” associate the arrays in the MSR format with the matrix

like, you already built your arrays in MSR format and now you want the matrix to know about them? that's the whole job. slay πŸ’…


🌸 SYNOPSIS 🌸

#include "lis.h"

LIS_INT lis_matrix_set_msr(LIS_INT nnz, LIS_INT ndz[], LIS_INT index[],
LIS_SCALAR value[], LIS_MATRIX A);

there she is 🫢 look at those parameters, main character energy fr fr.


πŸ¦‹ DESCRIPTION πŸ¦‹

Associate the arrays in the MSR format with matrix A.

that's it. that's the vibe. you've got arrays, the matrix wants them, this function is the matchmaker πŸ’– no cap.


πŸ’œ INPUT πŸ’œ

  • nnz β€” The number of nonzero elements. like, how many actual entries you're bringing to the party ✨
  • ndz β€” The number of nonzero elements in the diagonal. the diagonal gets its own count, she's special like that πŸ‘‘
  • ptr, index, value β€” The arrays in the MSR format. yes these are the literal arrays you're handing over, the whole point of the function, periodt.
  • A β€” The matrix. she's the one receiving all this attention 🌸

πŸŽ€ OUTPUT πŸŽ€

  • A β€” The matrix associated with the arrays. she's been updated, she now has the arrays, it's giving glow-up πŸ’…

⭐ EXIT STATUS ⭐

The following exit values are returned:

  • 0 β€” The process is normally terminated. we love a clean exit, no drama, immaculate 🌈
  • unspecified β€” An error occurred. 😭 something went wrong and the manual is literally just telling you "unspecified", which is honestly so unhelpful of it, but here we are.

πŸ’€ NOTE πŸ’€

After lis_matrix_set_msr is called, the function lis_matrix_assemble must be called.

bestie this is not optional, i need you to hear me. you set the arrays, then you assemble. if you skip the assemble step you're gonna have a bad time and i will be so sad for you πŸ™ˆ


πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page!! πŸ’– this was Lis Library Functions, page dated 6 Sep 2012, filed under the Man Page section β€” go forth and assemble your matrices, i believe in you πŸ§šβœ¨πŸ’œ

πŸ“¦ where this page comes from