lis_vector_axpyz(3)

πŸ“¦ version 2.1.11, in fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

✨ 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