lis_array_axpy(3)
π lis_array_axpy β bestie edition π
okay so we're in the Lis Library Functions corner of the manual, section 3, and today's main character is lis_array_axpy(3). she does one thing and she does it gorgeously, no cap.
β¨ NAME β¨
lis_array_axpy β calculate the sum of the vectors π«Ά
πΈ SYNOPSIS πΈ
#include "lis.h"
LIS_INT lis_array_axpy(LIS_INT n, LIS_SCALAR alpha, LIS_SCALAR x[],
LIS_SCALAR y[]);
π¦ DESCRIPTION π¦
bestie. listen. this function calculates the sum of the vectors, and the way it does it is literally:
y = alpha * x + y
that's it. that's the whole vibe. alpha times x, plus y, and the answer lands right back in y. iconic behaviour, honestly. π
π INPUT π
nβ the size of the vectors. like, how many numbers are we working with, bestie.alphaβ the scalar value. she's the multiplier, she's the moment. πx,yβ the arrays that store the vectors. the two girlies doing all the work.
π OUTPUT π
yβ this is wherealpha * x + ygoes. heads up though: vectoryis overwritten. she doesn't get a copy, she gets a glow-up in place. π
π EXIT STATUS π
the following exit values are returned, and yes we're checking them like the responsible queens we are:
0β the process is normally terminated. slay. β¨unspecifiedβ an error occurred. not the vibe. π
π SEE ALSO π
ngl this whole page is giving "small function, big energy". go forth and axpy, bestie. π§π
this page came from the <strong>Man Page</strong>, dated <strong>3 Dec 2014</strong> β fr fr, that's the source and version, so now you know where she came from. bye bestie, love u, see u in the next man page ππΈπ¦
π¦ 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