lis_array_shift(3)

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

✨ lis_array_shift β€” bestie, we're shifting things ✨

okay so real talk, this is a page from the Lis Library Functions manual, and it's about lis_array_shift β€” the glow-up function that gives you the shifted values of every element in your vector. no cap. πŸ’–


🌸 NAME 🌸

lis_array_shift β€” get the shifted values of the elements of the vector

like literally, that's the whole gig. it shifts. it delivers. periodt. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include "lis.h"

LIS_INT lis_array_shift(LIS_INT n, LIS_SCALAR alpha, LIS_SCALAR x[]);

so you pull in lis.h first, obviously, and then you call it with the size, the shift amount, and the array. that's it. that's the whole summoning ritual. πŸŽ€


πŸ’œ DESCRIPTION πŸ’œ

Get the shifted values of the elements of vector x.

that's the vibe. you hand it a vector, it hands you back the shifted version. iconic behaviour honestly. ✨


πŸ“ INPUT πŸ“

here's what you gotta feed it, bestie:

  • n β€” the size of the vector. like, how many elements are we working with. she needs to know. πŸ‘‘
  • alpha β€” the amount of the shift. how far are we sliding. the whole mood of the operation. πŸ’«
  • x β€” the array that stores the vector. this is the actual goods. 🧺

🌈 OUTPUT 🌈

  • x β€” the array that stores the shifted values. yes, same x. she comes back changed. main character transformation arc fr fr. πŸ¦‹

πŸ’€ EXIT STATUS πŸ’€

the following exit values are returned:

  • 0 β€” the process is normally terminated. slay, everything worked, we love to see it. πŸŽ‰
  • unspecified β€” an error occurred. not me getting an error 😭 something went sideways and the page will not tell you what, which is honestly so unhelpful of it, but there it is. 🚩

🫢 SEE ALSO 🫢


and that's the whole page, bestie!! mwah πŸ’‹ this was the lis_array_shift(3) page from the Lis Library Functions manual, dated 3 Dec 2014, and if you wanna go find the source of all this chaos it lives at http://www.ssisc.org/lis/. go shift something. i believe in you. πŸ’–βœ¨

πŸ“¦ where this page comes from