lis_matrix_get_nnz(3f)
β¨ lis_matrix_get_nnz(3f) β Lis Library Functions β¨
okay so bestie, welcome to the manual page for lis_matrix_get_nnz, one of the Lis Library Functions π this one's a lil cutie and honestly it's giving "short and sweet, does exactly one thing" energy, and we LOVE that for it π
π NAME π
lis_matrix_get_nnz β get the number of nonzero elements of the matrix
like. that's it. that's the job. count the nonzeros, hand you the number, no drama πΈ
π¦ SYNOPSIS π¦
subroutine lis_matrix_get_nnz(LIS_MATRIX A, LIS_INTEGER *nnz,
LIS_INTEGER ierr);
okay so it's a subroutine, not a function, which means no return value, you get your answer through an argument instead, iykyk π
π DESCRIPTION π
Get the number of nonzero elements of matrix A.
that's literally the whole thing bestie. you hand it a matrix, it counts up all the elements that aren't zero, and it tells you how many there are. main character behavior, no cap π β¨
πΈ INPUT πΈ
Aβ the matrix π«Ά just, like, the matrix you're curious about
β OUTPUT β
nnzβ the number of nonzero elements π₯ the number you came here for, the whole point of the entire operation
π NOTE π
okay so listen, this one's important:
For the multiprocessing environment, this function gets the number of nonzero elements of partial matrix A.
so if you're out here running in a multiprocessing environment, do NOT expect the global count, bestie π you're getting the nonzero count of your local partial slice of A, which is lowkey a whole different number. plan accordingly π
π§ SEE ALSO π§
and that's the whole page, bestie!! mwah π
this icon was brought to you by the Man Page, dated 28 Aug 2014, for lis_matrix_get_nnz(3f) β go forth and count your nonzeros responsibly, queen πβ¨
π¦ 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