lis_matrix_set_csc(3f)
β¨ lis_matrix_set_csc β bestie, it's time to bind your CSC arrays to a matrix β¨
okay so this is a lis_matrix_set_csc situation, and it lives in the Lis Library Functions manual (section 3f, iykyk β that f is for Fortran, we love her). π
πΈ NAME πΈ
lis_matrix_set_csc β associate the arrays in the CSC format with the matrix. literally that's her whole job and she ate. π
π SYNOPSIS π
subroutine lis_matrix_set_csc(LIS_INTEGER nnz, LIS_INTEGER ptr[],
LIS_INTEGER index[], LIS_SCALAR value[], LIS_MATRIX A, LIS_INTEGER ierr);
no cap, that's the whole signature. copy it exactly, bestie, don't freestyle it. π«Ά
π¦ DESCRIPTION π¦
Associate the arrays in the CSC format with matrix A.
that's it. that's the vibe. you're basically introducing your CSC arrays to your matrix like "hey A, meet ptr, index, and value, they're family now". π₯Ή the matrix gets a new set of besties and everybody slays.
π INPUT π
nnzβ The number of nonzero elements. the count, the headcount, the "how many of y'all are actually here" number. π’ptr,index,valueβ The arrays in the CSC format. the trio. the iconic main-character squad. πAβ The matrix. the one getting the glow-up. β¨
π OUTPUT π
Aβ The matrix associated with the arrays. she's been matched with her arrays, she's thriving, she's whole. πΈ
β οΈ NOTE β οΈ
Afterlis_matrix_set_cscis called, the functionlis_matrix_assemblemust be called.
not me saying this is non-negotiable, because it genuinely is. you cannot just set and ghost. π¨ you must call lis_matrix_assemble afterwards or the whole thing is giving unfinished business. periodt. π
π SEE ALSO π
mwah π that's the page β from the Lis Library Functions manual, dated 6 Sep 2012. go forth, call lis_matrix_assemble, and be the main character of your own sparse matrix journey. bye bestie, ily! πβ¨π¦
π¦ 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