lis_array_axpy(3f)
β¨ lis_array_axpy β calculate the sum of the vectors β¨
okay bestie, welcome to the Lis Library Functions corner of the manual, page lis_array_axpy(3f), and no cap this one is a lil baby function that does one (1) thing and does it gorgeously π
πΈ SYNOPSIS πΈ
subroutine lis_array_axpy(LIS_INTEGER n, LIS_SCALAR alpha, LIS_SCALAR
x(), LIS_SCALAR y(), LIS_INTEGER ierr);
like. look at her. five arguments, zero drama π«Ά
π DESCRIPTION π
so the whole entire vibe here is: calculate the sum of the vectors. that's it, that's the tweet.
formally, she computes:
y = alpha * x + y
which is literally the classic axpy move (iykyk), and honestly? iconic. she takes your vector x, scales it by your scalar alpha, adds it onto your vector y, and just. leaves it there. no returns, no copies, no ceremony. main character energy, minimal effort, maximum results β¨
π INPUT π
nβ the size of the vectors. like, how many entries are we playing with, bestie.alphaβ the scalar value. the lil multiplier. the seasoning πx,yβ the arrays that store the vectors. two cuties holding hands, fr fr.
π¦ OUTPUT π¦
yβ holdsalpha * x + ywhen all is said and done. heads up though: vectoryis overwritten. she does not ask permission, she does not save a backup, she simply replaces your oldywith the new one. so if you needed the oldy?? too late babes π keep a copy first.
π SEE ALSO π
lowkey a public service announcement: y gets clobbered in place. that's not a bug, that's just her nature. plan accordingly π
and that's the whole page, periodt π
this lil slice of manpage magic comes to you from the Lis Library Functions collection, dated 3 Dec 2014 β yeah she's vintage, she's still slaying, we love a timeless queen πβ¨π
π¦ 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