lis_array_abs(3)

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

✨ NAME ✨

lis_array_abs β€” bestie, this one hands you the absolute values of every element in your vector πŸ’–

So you know how lis_array_abs lives in the Lis Library Functions? Yeah. That's her. She takes your vector and makes every single element positive. Negativity? Not on her watch, periodt. πŸ’…


🌸 SYNOPSIS 🌸

#include "lis.h"

LIS_INT lis_array_abs(LIS_INT n, LIS_SCALAR x[]);

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here's the vibe: lis_array_abs gets the absolute values of the elements of vector x. That's it. That's the whole job. She looks at every element, and if it's sitting there in the negatives feeling all sad, she flips it to positive and tells it to go be great. 🌈

No cap, it's giving glow-up energy. ✨


πŸŽ€ INPUT πŸŽ€

  • n β€” the size of the vector, aka how many elements we're working with, iykyk 🫢
  • x β€” the array that stores the vector, the whole squad of numbers lined up and ready πŸ‘‘

πŸ’œ OUTPUT πŸ’œ

  • x β€” the array that stores the absolute values. Same array, but now every element is positive and thriving. She ate and left no crumbs. 😭✨

πŸ”₯ EXIT STATUS πŸ”₯

Here's what you might get back, bestie:

  • 0 β€” the process is normally terminated, everything slayed, we love to see it πŸ‘‘
  • unspecified β€” an error occurred πŸ’€ something went wrong and honestly? Couldn't be more vague about it
Not me getting unspecified and having zero clues about what happened 😭 the drama of it all.

πŸ’– SEE ALSO πŸ’–


Man Page Β· 3 Dec 2014

Okay that's the whole page, bestie πŸŽ€ go forth and make everything positive. This was the Lis Library Functions manual page, dated 3 Dec 2014, and she's iconic for it. Mwah. πŸ’…πŸ’–πŸ¦‹

πŸ“¦ where this page comes from