lis_vector_pmul(3)

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

πŸ’– lis_vector_pmul β€” the Lis Library Functions glow-up πŸ’–

okay bestie, so this one lives in the Lis Library Functions manual, section 3, and it's genuinely one of the cutest little functions ever. it's called lis_vector_pmul, and it's about to multiply stuff. element by element. we love a math moment ✨


✨ NAME ✨

lis_vector_pmul β€” multiply each element of a vector by the corresponding element of another

like. literally that. you got two vectors, you smash their elements together pairwise, you get a third vector. it's giving matching besties doing everything in sync 🫢


🌸 SYNOPSIS 🌸

#include "lis.h"

LIS_INT lis_vector_pmul(LIS_VECTOR x, LIS_VECTOR y, LIS_VECTOR z);

so you pull in "lis.h", you call lis_vector_pmul, you hand it three LIS_VECTORs, and it hands you back a LIS_INT. that's the whole vibe 😌


πŸ¦‹ DESCRIPTION πŸ¦‹

Multiply each element of vector x by the corresponding element of vector y.

no cap, that's it. element i of x times element i of y. index-matched. they don't get shuffled around or anything, it's a straight-up one-to-one situationship πŸ’…


πŸŽ€ INPUT πŸŽ€

  • x, y β€” The vectors πŸ‘‘ the two of them, coming in as the inputs, ready to get multiplied together

πŸ“ OUTPUT πŸ“

  • z β€” The vector that stores the multiplied elements of x 🌈 it's where the results land, so it's basically the main character here

πŸ’œ EXIT STATUS πŸ’œ

The following exit values are returned:

  • 0 β€” The process is normally terminated ✨ everything slayed, no notes
  • unspecified β€” An error occurred 😭 not every story has a happy ending, and this is the "we don't know what went wrong, it's unspecified" ending

⭐ SEE ALSO ⭐


πŸ’€ reminder bestie: the exit status is either 0 or literally unspecified, so don't go building a whole error-handling personality around guessing which error it was, okay? the manpage said unspecified and unspecified it stays πŸ™ˆ

and that's the page fr fr 🧚 source is the Man Page, dated 28 Aug 2014, and yes the page title is lis_vector_pmul(3) because we're keeping it cute and consistent. bye bestie, go multiply some vectors πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from