lis_vector_axpyz(3)
β¨ lis_vector_axpyz β bestie edition β¨
ok so you're in the Lis Library Functions section of the manual, section 3, and the star of the show today is lis_vector_axpyz. sit down, hydrate, let's get into it π«Ά
πΈ NAME πΈ
lis_vector_axpyz β calculate the sum of the vectors. that's it, that's the vibe. girl math but for linear algebra π
π¦ SYNOPSIS π¦
#include "lis.h"
LIS_INT lis_vector_axpyz(LIS_SCALAR alpha, LIS_VECTOR x, LIS_VECTOR y,
LIS_VECTOR z);
look at that signature. iconic. four arguments, zero drama (okay, a little drama, it's C) π
π DESCRIPTION π
Calculate the sum of the vectors z = alpha * x + y.
that's the whole thing bestie!! you hand it a scalar, you hand it two vectors, and it hands you back the beautiful little combination of them. it's giving blended smoothie. it's giving perfectly balanced. no cap π
π INPUT π
alphaβ The scalar value. just a number, chilling, waiting to multiply.x,yβ The vectors. the two main characters of this operation π
π OUTPUT π
zβalpha * x + y. literally the result. that's her. that's the output. she ate and left no crumbs β¨
π EXIT STATUS π
The following exit values are returned:
0β The process is normally terminated. slay, everything went fine, go live your life πunspecifiedβ An error occurred. not me finding out something went wrong with no further details π the void simply said "no"
π§ SEE ALSO π§
go check the big lis(3) page if you want the whole lore, and the website has all the extra tea π
ok so real talk: pass your vectors, pass your scalar, get z = alpha * x + y back. don't overthink it. it's lowkey the easiest function in the whole library and honestly? obsessed π₯°
and that's a wrap on this page from the Lis Library Functions crew, dated 28 Aug 2014 β lis_vector_axpyz(3), forever in our hearts. mwah π π
π¦ 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