lis_array_axpyz(3)
๐ lis_array_axpyz(3) ๐
okay bestie, welcome to the Lis Library Functions corner of the manual, where we're about to do some extremely cute vector math. this one is lis_array_axpyz and she is serving โจ addition โจ
โจ NAME โจ
lis_array_axpyz โ calculate the sum of the vectors ๐งฎ๐ซ
๐ธ SYNOPSIS ๐ธ
#include "lis.h"
LIS_INT lis_array_axpyz(LIS_INT n, LIS_SCALAR alpha, LIS_SCALAR x[],
LIS_SCALAR y[], LIS_SCALAR z[]);
like yes she takes five arguments and she eats every single time ๐
๐ฆ DESCRIPTION ๐ฆ
Calculate the sum of the vectors, and the sum in question is literally this:
z = alpha * x + y
so you take vector x, you scale it by the scalar alpha, you add vector y on top, and the whole vibe lands in z. no cap, that's the entire plot ๐
๐ INPUT ๐
nโ the size of the vectors. like, how many entries each one has, bestie ๐alphaโ the scalar value. the little multiplier doing all the heavy lifting ๐โโ๏ธx,yโ the arrays that store the vectors. the source material, the main characters ๐
โญ OUTPUT โญ
zโalpha * x + y. that's it, that's the result, she's gorgeous ๐ญ๐
๐ฅ EXIT STATUS ๐ฅ
the following exit values are returned, so pay attention:
0โ the process is normally terminated. we love a clean exit, periodt โจunspecifiedโ an error occurred. not the vibe, but it happens ๐
๐ SEE ALSO ๐
ngl if you're out here doing vector math and you didn't know about this one, now you know. iykyk ๐ฆ
this page is part of the Lis Library Functions manual, dated 3 Dec 2014, and it's the one and only lis_array_axpyz(3). mwah, take care of her, she slays ๐
๐๐
๐ฆ 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