lis_matrix_set_msr(3)
π 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 π
Afterlis_matrix_set_msris called, the functionlis_matrix_assemblemust 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
- fedora 43: lis-doc 2.0.21-13.fc41 Β· BSD
- fedora 43: lis-doc 2.1.11-1.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: lis-doc 2.0.21-13.fc41 Β· BSD
- fedora 44: lis-doc 2.1.11-1.fc44 Β· LicenseRef-Callaway-BSD
- nixos 26.05: lis 2.1.10
- nixpkgs unstable: lis 2.1.16
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms