lis_vector_pmul(3)
π 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 ofxπ 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
- fedora 43: lis-doc 2.0.21-13.fc41 Β· BSD
- fedora 43: lis-doc 2.1.11-1.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: lis-doc 2.0.21-13.fc41 Β· BSD
- fedora 44: lis-doc 2.1.11-1.fc44 Β· LicenseRef-Callaway-BSD
- nixos 26.05: lis 2.1.10
- nixpkgs unstable: lis 2.1.16
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms