lis_vector_xpay(3)

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

✨ lis_vector_xpay ✨

okay bestie, gather round, because we're about to talk about the Lis Library Functions and specifically the lil icon that is lis_vector_xpay πŸ’…


🌸 NAME 🌸

lis_vector_xpay β€” calculate the sum of the vectors


πŸŽ€ SYNOPSIS πŸŽ€

#include "lis.h"

LIS_INT lis_vector_xpay(LIS_SCALAR alpha, LIS_VECTOR x, LIS_VECTOR y);

πŸ’– DESCRIPTION πŸ’–

So what this does is calculate the sum of the vectors, and it does it like this:

y = x + alpha * y

that's it. that's the whole vibe. you hand it a scalar and two vectors and it goes off. πŸ¦‹


🌈 INPUT 🌈

  • alpha β€” the scalar value, i.e. the little number you're multiplying y by before the add. lowkey the flavoring of the whole operation ✨
  • x, y β€” the vectors. yes both of them. they're a package deal, iykyk 🫢

πŸ‘‘ OUTPUT πŸ‘‘

  • y β€” it's x + alpha * y, and heads up bestie, vector y is overwritten. so like, your original y? gone. replaced. main character now. no cap 😭

πŸ’€ EXIT STATUS πŸ’€

here's what it returns when it's done:

  • 0 β€” the process is normally terminated. slay, everything went great πŸŽ‰
  • unspecified β€” an error occurred. not the vibe. something went wrong and it's not telling us what πŸ™ˆ

πŸ¦„ SEE ALSO πŸ¦„


and that's the whole page, bestie πŸ’œ this was the Lis Library Functions manual for lis_vector_xpay, dated 6 Sep 2012, from the Lis library (yes, that ssisc.org Lis). go forth and xpay responsibly βœ¨πŸŽ€

πŸ“¦ where this page comes from