lis_vector_get_range(3f)
π NAME π
lis_vector_get_range β bestie, this is how you find out where your partial vector is actually living inside the big global vector πΊοΈβ¨
It's from the Lis Library Functions manual, and it's genuinely one of those tiny utilities that saves your whole day. Obsessed.
πΈ SYNOPSIS πΈ
subroutine lis_vector_get_range(LIS_VECTOR v, LIS_INTEGER *is,
LIS_INTEGER *ie, LIS_INTEGER ierr);
okay so it's a subroutine, not a function, so the answers come back through is and ie β no cap, that's just how Fortran does it π«Ά
π¦ DESCRIPTION π¦
Get the location of the partial vector v in the global vector. That's it, that's the whole vibe β you hand it your little slice of the vector and it tells you which chunk of the big vector you're holding π
π INPUT π
vβ The partial vector. Your little piece of the pie π
β¨ OUTPUT β¨
isβ The location where the partial vectorvstarts in the global vector πΈieβ The location where the partial vectorvends in the global vector π
π NOTE π
For the serial and multithreaded environments, a vector of size n results in is = 0 and ie = n.
Like... every single element is yours, main character energy, the whole vector is your range. No splitting, no drama π§
lowkey important: this is specifically about the serial and multithreaded environments. Don't go assuming it holds everywhere, bestie π
π SEE ALSO π
fr fr, that's the whole page β written 6 Sep 2012, straight out of the Lis Library Functions manual, and this cutie is titled lis_vector_get_range(3f). slay, go get your range πβ¨π
π¦ 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