lis_array_set_all(3f)

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

✨ lis_array_set_all(3f) β€” the Lis Library Functions glow-up ✨

okay bestie, gather round πŸ’– this one's from the Lis Library Functions manual and it is genuinely the simplest, most satisfying little subroutine you'll ever meet. it does ONE thing and it does it flawlessly. no cap.


🌸 NAME 🌸

lis_array_set_all β€” assign the value to the elements of the vector

like... that's it. that's the whole job. and honestly? iconic behavior. πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

subroutine lis_array_set_all(LIS_INTEGER n, LIS_SCALAR value, LIS_SCALAR
x(), LIS_INTEGER ierr);

look at her. four args. clean. no drama. she said "I will take your n, your value, your x() and your ierr and I will handle it." periodt. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

Assign scalar value value to the elements of vector x.

fr fr that's the tea β˜• every single element of x gets value dropped into it. the whole vector. all of it. it's giving "uniformity" it's giving "copy-paste but make it a syscall". lowkey the most peaceful function in the whole library because nothing can go wrong conceptually β€” you have a value, you have a vector, now they're the same.


πŸ“ INPUT πŸ“

  • n β€” The size of the vector. bestie, this is how many elements we're talking about. it's a LIS_INTEGER. don't lie to her about the size. πŸ™ˆ
  • value β€” The scalar value to be assigned. this is the thing that's gonna get sprinkled onto every element like glitter ✨ it's a LIS_SCALAR.
  • x β€” The array that stores the vector. this is the vessel. the container. the main character. it's a LIS_SCALAR array.

πŸ’œ OUTPUT πŸ’œ

  • x β€” The array with the value assigned to the elements. she came in as one thing and leaves fully filled with value. glow-up complete. πŸ’–

🌈 SEE ALSO 🌈


ok real talk: this function writes into x. so make sure your array is actually big enough for n elements and that you actually want everything overwritten, because she will not hesitate. no takebacks. πŸ’€

and that's the whole page, bestie 🫢 this lil gem is from the Lis Library Functions manual, and the man page itself is dated 3 Dec 2014 β€” vintage, honestly, but she still ate. mwah. πŸ’…πŸŽ€

πŸ“¦ where this page comes from