lis_array_xpay(3f)

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

πŸ’– lis_array_xpay β€” the "just add a lil bit of x to y" function πŸ’–

okay bestie, welcome to the Lis Library Functions corner of the manual, this is lis_array_xpay(3f) and she is so much simpler than her name makes her sound, i promise 🫢


✨ NAME ✨

lis_array_xpay β€” calculate the sum of the vectors πŸ’«


🌸 SYNOPSIS 🌸

subroutine lis_array_xpay(LIS_INTEGER n, LIS_SCALAR x(), LIS_SCALAR
alpha, LIS_SCALAR y(), LIS_INTEGER ierr);

πŸ¦‹ DESCRIPTION πŸ¦‹

bestie. listen. she calculates the sum of the vectors:

y = x + alpha * y

that's it. that's the whole vibe. you hand her some vectors and a scalar, she does the lil math, and she puts the answer right back in y. main character energy tbh πŸ‘‘


πŸŽ€ INPUT πŸŽ€

  • n β€” the size of the vectors. like, how many numbers are we talking here, girlie? that many. πŸ“
  • alpha β€” the scalar value. this is the lil multiplier that makes it spicy 🌢️
  • x, y β€” the arrays that store the vectors. these are the actual data, no cap πŸ’…

⭐ OUTPUT ⭐

  • y β€” gets x + alpha * y written all over it. yes literally, vector y is overwritten, so if you were attached to the old y… she's gone bestie πŸ˜­πŸ™ˆ
not me warning you twice: y is overwritten. the original contents do NOT survive this. periodt.

πŸ‘‘ SEE ALSO πŸ‘‘


that's the whole page, no filler, ate and left no crumbs πŸ“

and for the cute sign-off: this lil masterpiece is from the Lis Library Functions manual, dated 3 Dec 2014, filed under Man Page for lis_array_xpay(3f) πŸ’œβœ¨πŸ§š

πŸ“¦ where this page comes from