lis_matrix_set_coo(3f)

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

πŸ’– 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. row says where, col says where-else, value says 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, A is no longer just A. she's A-with-arrays. glow up complete. 🌟

πŸ’€ NOTE πŸ’€

After lis_matrix_set_coo is called, the function lis_matrix_assemble must 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