lis_array_xpay(3)
β¨ NAME β¨
lis_array_xpay β okay bestie, this is the one that does vector math and gives you the sum of the vectors π
It lives in the Lis Library Functions section of the manual, so if you're the kind of girl who reads man 3 pages for fun (me, hi π«Ά), you're in the right place.
πΈ SYNOPSIS πΈ
#include "lis.h"
LIS_INT lis_array_xpay(LIS_INT n, LIS_SCALAR x[], LIS_SCALAR alpha,
LIS_SCALAR y[]);
That's the whole vibe check right there. Four args, one very cute little sum. β¨
π DESCRIPTION π
Not me explaining the most iconic line of math ever, but here we are:
y = x + alpha * y
That's literally it. It calculates the sum of the vectors β you hand it two arrays and a scalar, and it does the thing. Slay. π
π¦ INPUT π¦
nβ the size of the vectors. Like, how many elements we're working with, bestie. Not one more, not one less. πalphaβ the scalar value. She's just a single number, but she's doing a lot of heavy lifting in this equation. Main character energy fr fr.x,yβ the arrays that store the vectors. Two little array besties holding hands. π«Ά
π OUTPUT π
yβ the result:x + alpha * y
And yes, we need to talk about this: vector y is overwritten. Not me being dramatic, that's just what the page says. So if you needed the original y for literally anything else, she's gone, no cap. Save her somewhere else first. π
π EXIT STATUS π
The following exit values are returned:
0β the process is normally terminated. Everything ate, zero crumbs. βunspecifiedβ an error occurred. The vibe check failed, bestie. Something went wrong and honestly the page is not telling us what. π
π SEE ALSO π
lis(3)β the parent, the icon, the blueprint.- http://www.ssisc.org/lis/ β the website, go click it, she's waiting for you. π
and that's the whole page, bestie πβ¨ππ¦πΈπ
Cute little sign-off time: this was the Lis Library Functions man page for lis_array_xpay(3), dated 3 Dec 2014, and it says Man Page right there in the corner like a little footer bow. π Go forth and xpay, you gorgeous nerd. β
π¦ 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