lis_array_scale(3)

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

πŸ’– NAME πŸ’–

okay bestie, so lis_array_scale is a function from the Lis Library β€” and what it does is literally just multiply the vector by the scalar. that's it. that's the whole vibe. ✨


🌸 SYNOPSIS 🌸

here's how you pull it into your life, no cap:

#include "lis.h"

LIS_INT lis_array_scale(LIS_INT n, LIS_SCALAR alpha, LIS_SCALAR x[]);

like. look at it. it's giving "short and iconic". πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

bestie it does exactly one thing and it does it flawlessly: multiply vector x by scalar alpha. that's the assignment, and she ATE. πŸ’…

no extra drama, no side quests, just a vector getting scaled. main character energy fr fr. πŸ‘‘


✨ INPUT ✨

the receipts, aka what you gotta hand over:

  • n β€” the size of the vector. gotta know how many lil guys we're multiplying, obviously. πŸ“
  • alpha β€” the scalar value alpha. the number doing the multiplying. the moment. 🌟
  • x β€” the array that stores the vector. this is the queen we're about to transform. πŸ‘‘

πŸ’œ OUTPUT πŸ’œ

  • x β€” the result is alpha * x, and vector x is overwritten πŸ’€. like, she's not coming back the same, bestie. the original values? gone. replaced. glowed up. hope you didn't need them. πŸ™ˆ

🌈 EXIT STATUS 🌈

here's the vibe check on how it can end:

  • 0 β€” the process is normally terminated. slay, we love a clean exit. βœ…
  • unspecified β€” an error occurred. 😭 not the error arc. lowkey devastating but okay.

🫢 SEE ALSO 🫢

go read the main character:


so yeah, that's lis_array_scale from the Lis Library Functions manual, and this lil page was last updated 3 Dec 2014 β€” vintage but still serving. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from