lis_array_pmul(3)

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

πŸ’– lis_array_pmul(3) β€” the Lis Library Functions era πŸ’–

okay bestie, gather round, because we're talking about lis_array_pmul(3) from the Lis Library Functions collection and honestly? it's giving math girlboss. this is the page for multiplying vectors element-by-element and it's lowkey so satisfying. 🧚✨


✨ NAME ✨

lis_array_pmul β€” multiply each element of a vector by the corresponding element of another πŸ’…

like. exactly what it says. no plot twist. no cap.


🌸 SYNOPSIS 🌸

#include "lis.h"

LIS_INT lis_array_pmul(LIS_INT n, LIS_SCALAR x[], LIS_SCALAR y[],
LIS_SCALAR z[]);

there she is. the whole signature. iconic. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

Multiply each element of vector x by the corresponding element of vector y. πŸ“

that's it. that's the whole vibe. element zero of x meets element zero of y, they hold hands, element zero of z is born. repeat for every single element. fr fr, it's a glow-up for your arrays. πŸ’–


🌈 INPUT 🌈

  • n β€” the size of the vectors πŸŽ€ (how many elements we're matching up, bestie)
  • x, y β€” the arrays that store the vectors ✨ (the two cuties getting multiplied together)

πŸ’œ OUTPUT πŸ’œ

  • z β€” the array that stores the multiplied elements of x πŸ‘‘ (the final result, the main character, the moment)

πŸ”₯ EXIT STATUS πŸ”₯

the following exit values are returned, and yes we care about them:

  • 0 β€” the process is normally terminated βœ… slay, everything worked
  • unspecified β€” an error occurred 😭 not the vibe, something went wrong

🫢 SEE ALSO 🫢


ngl bestie, if the vibes go wrong and you get that unspecified error, that's your sign to go check your inputs. don't shoot the messenger. πŸ™ˆ

and that's the page!! this was the Lis Library Functions manual, dated 3 Dec 2014 β€” yes she's an older queen but she still ate πŸ’…βœ¨ love that for her. go forth and multiply your elements, bestie. periodt. πŸŒΈπŸ¦‹πŸ’–

πŸ“¦ where this page comes from