lis_vector_scale(3f)

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

✨ NAME ✨

lis_vector_scale β€” multiply the vector by the scalar πŸ’–

okay bestie, this is a Lis Library function (the Fortran one, hence the (3f) energy), and it does literally one thing and does it flawlessly. no cap.


🌸 SYNOPSIS 🌸

subroutine lis_vector_scale(LIS_SCALAR alpha, LIS_VECTOR x, LIS_INTEGER ierr);

like… three args, one job, main character energy fr fr 🫢


πŸŽ€ DESCRIPTION πŸŽ€

Multiply vector x by scalar alpha.

that's it. that's the whole vibe. it's giving "glow up but for numbers" ✨ every single element of x gets multiplied by alpha, and x comes back different. iconic behavior honestly.


πŸ’… INPUT πŸ’…

  • alpha β€” The scalar value alpha. that's the number you're scaling everything by. it's the moment. it's the multiplier. 🌈
  • x β€” The vector. the one getting scaled. the star of the show. πŸ‘‘

πŸ¦‹ OUTPUT πŸ¦‹

  • x β€” alpha * x (vector x is overwritten)
⚠️ not me warning you: x gets OVERWRITTEN. your original vector is GONE, bestie. it got ate. πŸ’€ if you needed the before-pic, you should've kept a copy. πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘


this page is from the Lis Library Functions manual, lis_vector_scale(3f), dated 6 Sep 2012 β€” yes it's a lil vintage but she still slays, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from