lis_vector_get_range(3f)

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

πŸ’– 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 vector v starts in the global vector 🌸
  • ie β€” The location where the partial vector v ends 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