lis_matrix_set_coo(3f)
π lis_matrix_set_coo(3f) β the Lis Library Functions era π
okay bestie, so this is lis_matrix_set_coo, a page from the Lis Library Functions manual, and it's literally the moment where your cute little COO arrays get introduced to your matrix. it's giving matchmaker. it's giving "you two should meet." π
β¨ NAME β¨
lis_matrix_set_coo β associate the arrays in the COO format with the matrix
like. that's the whole job. no cap.
π¦ SYNOPSIS π¦
subroutine lis_matrix_set_coo(LIS_INTEGER nnz, LIS_INTEGER row[],
LIS_INTEGER col[], LIS_SCALAR value[], LIS_MATRIX A, LIS_INTEGER ierr);
look at that signature. iconic. we love a Fortran subroutine with six arguments and zero chill. π
πΈ DESCRIPTION πΈ
Associate the arrays in the COO format with matrix A.
that's it, that's the vibe. you've got your COO arrays sitting there, and this subroutine is what hooks them up to A. main character energy fr fr. π₯
π INPUT π
nnzβ The number of nonzero elements. yes, the count. the population of your little nonzero community. πrow,col,valueβ The arrays in the COO format. this trio right here? they're the whole point.rowsays where,colsays where-else,valuesays how much. a coordinated slay. β¨Aβ The matrix. the one getting the arrays. the one being associated with. she's ready. π
π«Ά OUTPUT π«Ά
Aβ The matrix associated with the arrays. so like, after this,Ais no longer justA. she'sA-with-arrays. glow up complete. π
π NOTE π
Afterlis_matrix_set_coois called, the functionlis_matrix_assemblemust be called.
not optional bestie. MUST. you do not skip the assemble step. that's like doing your skincare routine and then not moisturising. absolutely not. do not leave your matrix half-done, i am begging. π
π§ SEE ALSO π§
go read the main page, it's the mothership. πΈ
and that's the whole page, babe. this little cutie comes to you from the Lis Library Functions, dated 6 Sep 2012 β yes, a vintage. a classic. she was slaying before some of us could read. bye bestie, go call lis_matrix_assemble πβ¨
π¦ 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