lis_matrix_set_csc(3f)

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

✨ 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 ⚠️

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