lis_vector_set_size(3)
π lis_vector_set_size(3) β from the Lis Library Functions, bestie π
okay so you're in the lis man pages, section 3, and this one is literally called lis_vector_set_size. it's giving "tell the vector how big it is" energy. let's go π¦
β¨ NAME β¨
lis_vector_set_size β assign the size of the vector π
β¨ SYNOPSIS β¨
#include "lis.h"
LIS_INT lis_vector_set_size(LIS_VECTOR v, LIS_INT local_n, LIS_INT global_n);
β¨ DESCRIPTION β¨
so basically you call this to assign the size of vector v. that's it, that's the whole job. lowkey iconic for how simple it is π
β¨ INPUT β¨
vβ the vector πlocal_nβ the size of the partial vector πΈglobal_nβ the size of the global vector π
β¨ EXIT STATUS β¨
here's what comes back at ya:
0β the process is normally terminated, slay β¨- unspecified β an error occurred π
β¨ NOTE β¨
okay bestie listen up, this part MATTERS π«Ά
either local_n or global_n must be provided. like, at least one of them. not neither, okay?
in the case of the serial and multithreaded environments, local_n is equal to global_n. so therefore, both of these:
lis_vector_set_size(v,n,0)
lis_vector_set_size(v,0,n)
create a vector of size n. same result, no cap π
but for the multiprocessing environment it's different, and this is where it gets spicy:
lis_vector_set_size(v,n,0)creates a partial vector of sizenon each processing element.lis_vector_set_size(v,0,n)creates a partial vector of sizem_pon the processing elementp.
and the values of m_p? those are determined by the library. not you. the library. periodt π
β¨ SEE ALSO β¨
okay that's the whole page, you ate that π go forth and size your vectors, main character. this was the lis_vector_set_size(3) page from the Lis Library Functions, dated 6 Sep 2012 β yes it's vintage but it still hits. mwah ππ§ββοΈ
π¦ 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