lis_array_pmul(3)
π 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 ofxπ (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 workedunspecifiedβ 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
- 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