lis_vector_reciprocal(3)

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

πŸ’– lis_vector_reciprocal β€” the "flip it, reverse it" era πŸ’–

okay so bestie, we're deep in the Lis Library Functions zone (that's the manual name, iykyk) and today's main character is lis_vector_reciprocal(3). it does literally one thing and it does it flawlessly. no notes. πŸ’…


✨ NAME ✨

lis_vector_reciprocal β€” get the reciprocal values of the elements of the vector πŸ¦‹

like… it takes your vector, and every element goes "1 over me, periodt."


🌸 SYNOPSIS 🌸

#include "lis.h"

LIS_INT lis_vector_reciprocal(LIS_VECTOR x);

that's it. that's the whole thing. one function, one argument, zero drama. πŸ’–


πŸŽ€ DESCRIPTION πŸŽ€

Get the reciprocal values of the elements of vector x. 🧚

so basically every element of x gets replaced by its reciprocal value. it's giving math but make it cute. πŸ”₯


πŸ’œ INPUT πŸ’œ

  • x β€” The vector 🌈

(yes queen, this is the vector you're handing over)


πŸ’… OUTPUT πŸ’…

  • x β€” The vector that stores the reciprocal values πŸ‘‘

it writes right back into x. in-place glow-up, no extra vector needed, we love an efficient icon. ✨


⭐ EXIT STATUS ⭐

The following exit values are returned:

  • 0 β€” The process is normally terminated 🫢 (slay, everything worked)
  • unspecified β€” An error occurred 😭 (not slay, something went wrong)
fr fr, if you get anything that isn't 0, that's your sign that an error occurred. no cap.

πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page bestie, we ate and left no crumbs πŸ’–

this was Lis Library Functions, page lis_vector_reciprocal(3), dated 28 Aug 2014 β€” love that for us, vintage but still iconic πŸŽ€βœ¨

πŸ“¦ where this page comes from