lis_array_axpy(3)

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

πŸ’– lis_array_axpy β€” bestie edition πŸ’–

okay so we're in the Lis Library Functions corner of the manual, section 3, and today's main character is lis_array_axpy(3). she does one thing and she does it gorgeously, no cap.


✨ NAME ✨

lis_array_axpy β€” calculate the sum of the vectors 🫢


🌸 SYNOPSIS 🌸

#include "lis.h"

LIS_INT lis_array_axpy(LIS_INT n, LIS_SCALAR alpha, LIS_SCALAR x[],
LIS_SCALAR y[]);

πŸ¦‹ DESCRIPTION πŸ¦‹

bestie. listen. this function calculates the sum of the vectors, and the way it does it is literally:

y = alpha * x + y

that's it. that's the whole vibe. alpha times x, plus y, and the answer lands right back in y. iconic behaviour, honestly. πŸŽ€


πŸ“ INPUT πŸ“

  • n β€” the size of the vectors. like, how many numbers are we working with, bestie.
  • alpha β€” the scalar value. she's the multiplier, she's the moment. πŸ’…
  • x, y β€” the arrays that store the vectors. the two girlies doing all the work.

πŸ‘‘ OUTPUT πŸ‘‘

  • y β€” this is where alpha * x + y goes. heads up though: vector y is overwritten. she doesn't get a copy, she gets a glow-up in place. πŸ™ˆ

πŸ’€ EXIT STATUS πŸ’€

the following exit values are returned, and yes we're checking them like the responsible queens we are:

  • 0 β€” the process is normally terminated. slay. ✨
  • unspecified β€” an error occurred. not the vibe. 😭

🌈 SEE ALSO 🌈


ngl this whole page is giving "small function, big energy". go forth and axpy, bestie. πŸ§šπŸ’œ

this page came from the <strong>Man Page</strong>, dated <strong>3 Dec 2014</strong> β€” fr fr, that's the source and version, so now you know where she came from. bye bestie, love u, see u in the next man page πŸ’–πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from