lis_vector_get_range(3)

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

πŸ’– lis_vector_get_range(3) πŸ’–

okay bestie, welcome to the Lis Library Functions corner of the manual, section 3, and today's main character is lis_vector_get_range ✨


🌸 NAME 🌸

lis_vector_get_range β€” get the location of the partial vector in the global vector πŸ—ΊοΈ


πŸŽ€ SYNOPSIS πŸŽ€

#include "lis.h"

LIS_INT lis_vector_get_range(LIS_VECTOR v, LIS_INT *is, LIS_INT *ie);

πŸ¦‹ DESCRIPTION πŸ¦‹

So like. You have a vector v, right, and it's a partial vector, meaning it's just one lil slice of a much bigger global vector. This function tells you where that slice lives inside the big one. That's it, that's the whole vibe. πŸ’…


🌈 INPUT 🌈

  • v β€” the partial vector. your girl. the slice in question 🍰

πŸ’œ 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

⭐ EXIT STATUS ⭐

here's what you might get back, no cap:

  • 0 β€” the process is normally terminated, we ate, we slayed πŸŽ‰
  • unspecified β€” an error occurred 😭 something went wrong and the universe said "not today"

🧚 NOTE 🧚

real talk, for the serial and multithreaded environments: a vector of size n results in is = 0 and ie = n. so it starts at the very beginning and ends at the very end, which honestly? iconic. full range, no notes. πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯


πŸ’€ reminder bestie: this is from the Lis Library Functions manual, dated 6 Sep 2012, page lis_vector_get_range(3). go forth and get those ranges, you got this fr fr πŸ«ΆπŸ’–βœ¨
πŸ“¦ where this page comes from