lis_matrix_set_size(3)
β¨ lis_matrix_set_size β bestie edition π
okay so we're in the Lis Library Functions corner of the manual, section 3, and today's main character is lis_matrix_set_size(3) π
πΈ NAME πΈ
lis_matrix_set_size β assign the size of the matrix. that's it, that's the job, and she does it flawlessly π
π¦ SYNOPSIS π¦
#include "lis.h"
LIS_INT lis_matrix_set_size(LIS_MATRIX A, LIS_INT local_n, LIS_INT
global_n);
β¨ DESCRIPTION β¨
Assign the size of matrix A. like, you're telling the matrix how big she is. iconic behavior honestly.
π INPUT π
Aβ the matrix herself πlocal_nβ the number of rows of the partial matrix. yes, partial, we're being specific here.global_nβ the number of rows of the global matrix. the big picture number, if you will.
π EXIT STATUS π
the following exit values are returned, no cap:
0β the process is normally terminated π«Ά everything's fine, we're thrivingunspecifiedβ an error occurred π not the vibe. something went wrong and it's giving chaos.
β οΈ NOTE β οΈ
okay bestie this part is important so pay attention:
Either local_n or global_n must be provided. you gotta give her one of them, fr fr.
In the case of the serial and multithreaded environments, local_n is equal to global_n. so it literally does not matter which one you hand over. Therefore, both lis_matrix_set_size(A,n,0) and lis_matrix_set_size(A,0,n) create a matrix of size n x n. same result, two paths, both slay β¨
For the multiprocessing environment though? different story:
lis_matrix_set_size(A,n,0)creates a partial matrix of size n x N on each processing element, where N is the total sum of n. π₯- On the other hand,
lis_matrix_set_size(A,0,n)creates a partial matrix of size m_p x n on the processing element p. The values of m_p are determined by the library. π (not by you, not by me β by the library. respect her authority.)
π SEE ALSO π
lis(3)- http://www.ssisc.org/lis/ β go visit, she's got lore π
and that's the whole page bestie π§ sourced from the Lis Library Functions, dated 6 Sep 2012, which is giving vintage but she still eats. mwah, go set some sizes ππΈπ
π¦ 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