lis_array_nrm1(3)

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

✨ lis_array_nrm1 β€” the 1-norm bestie ✨

okay so this is a page from the Lis Library Functions manual, and today's main character is lis_array_nrm1(3). it's giving math girlie, it's giving vector vibes πŸ’…


πŸŽ€ NAME πŸŽ€

lis_array_nrm1 β€” bestie, this calculates the 1-norm of the vector. that's the whole job. no cap. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

#include "lis.h"

LIS_INT lis_array_nrm1(LIS_INT n, LIS_SCALAR x[], LIS_SCALAR *value);

like, that's the whole signature. four things. iconic behavior honestly 🫢


🌸 DESCRIPTION 🌸

so basically: this function calculates the 1-norm of the vector x. that's it. that's the vibe check. lowkey elegant, highkey useful. πŸ’–


πŸ“ INPUT πŸ“

  • n β€” the size of the vector. like how many lil guys are in there πŸ‘‘
  • x β€” the array that stores the vector. the actual data, the moment, the content 🌈

πŸ’œ OUTPUT πŸ’œ

  • value β€” the 1-norm of the array. this is where the answer goes, bestie, pls hand it a pointer πŸ™ˆ

πŸ’€ EXIT STATUS πŸ’€

here's what you might get back:

  • 0 β€” the process is normally terminated. slay, everything went fine ✨
  • unspecified β€” an error occurred. 😭 not the unspecified error. we don't know what happened and that's the scariest part fr fr

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie!! this was lis_array_nrm1(3) from the Lis Library Functions, and the page footer says it was dated 3 Dec 2014 β€” so yeah, she's been serving accurate norm math since way before we were cool. periodt. πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from