lis_array_scale(3f)

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

✨ lis_array_scale(3f) ✨

okay bestie, welcome to the Lis Library Functions manual, and today's main character is lis_array_scale πŸ’– it's a lil Fortran situation and it does exactly one thing and it does it flawlessly, no notes.


🌸 NAME 🌸

lis_array_scale β€” multiply the vector by the scalar 🫢

literally that's it. that's the whole job. and she ate.


πŸŽ€ SYNOPSIS πŸŽ€

subroutine lis_array_scale(LIS_INTEGER n, LIS_SCALAR alpha, LIS_SCALAR
x(), LIS_INTEGER ierr);

πŸ’… DESCRIPTION πŸ’…

Multiply vector x by scalar alpha. πŸ¦‹

that's the vibe. you hand her a vector, you hand her a number, she hands you back the vector but scaled. it's giving math but make it cute. no cap.


🌈 INPUT 🌈

  • n β€” the size of the vector πŸ“ like how many lil guys are in there
  • alpha β€” the scalar value alpha ✨ the number doing the multiplying
  • x β€” the array that stores the vector πŸ“ your actual data, bestie

πŸ‘‘ OUTPUT πŸ‘‘

  • x β€” alpha * x (vector x is overwritten) 😭
heads up bestie: x gets overwritten fr fr. your original values are gone gone, replaced by alpha * x. if you needed the old ones, that's on you to save them first πŸ’€

🧚 SEE ALSO 🧚


and that's the whole page, periodt πŸ’œ this was the lis_array_scale(3f) man page from the Lis Library Functions, dated 3 Dec 2014. go forth and scale your vectors, icon 🌟

πŸ“¦ where this page comes from