lis_matrix_set_dia(3f)
β¨ lis_matrix_set_dia β bestie edition β¨
okay so this is a page from the Lis Library Functions manual, and today we're talking about lis_matrix_set_dia π
. it's a Fortran subroutine, it lives in section 3f, and it's lowkey one of those little glue functions that makes the whole DIA thing work. let's get into it π«Ά
πΈ NAME πΈ
lis_matrix_set_dia β it associates the arrays in the DIA format with the matrix. that's the whole job. iconic, honestly π
π SYNOPSIS π
subroutine lis_matrix_set_dia(LIS_INTEGER nnd, LIS_INTEGER index[],
LIS_SCALAR value[], LIS_MATRIX A, LIS_INTEGER ierr);
yes bestie, that's the exact signature, copy it character for character, no notes π
π¦ DESCRIPTION π¦
so what it does is: it associates the arrays in the DIA format with matrix A. that's it. that's the vibe. the arrays are the DIA-format ones, the matrix is A, and this function is the matchmaker β¨
π INPUT π
nndβ the number of nonzero elements, fr fr. that's the count you're handing over.index,valueβ the arrays in the DIA format. these are your actual data, the index array and the value array, coming in as a pair πAβ the matrix. your main character, the one everything is being associated with π
π OUTPUT π
Aβ the matrix, now associated with the arrays. she's been matched up, she's thriving π
π NOTE π
okay listen, this one actually matters: afterlis_matrix_set_diais called, the functionlis_matrix_assemblemust be called. no skipping, no procrastinating. set it, then assemble it. periodt π
π SEE ALSO π
and that's the page, bestie π§ go forth and associate those arrays. this little writeup comes straight from the Man Page source, dated 6 Sep 2012, and it's the lis_matrix_set_dia(3f) page from the Lis Library Functions manual β so if you ever need to cite it, that's the tea πβ¨
π¦ 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