lis_array_set_all(3f)
β¨ 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 aLIS_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 aLIS_SCALAR.xβ The array that stores the vector. this is the vessel. the container. the main character. it's aLIS_SCALARarray.
π OUTPUT π
xβ The array with the value assigned to the elements. she came in as one thing and leaves fully filled withvalue. glow-up complete. π
π SEE ALSO π
lis(3)- http://www.ssisc.org/lis/ β go snoop, iykyk π₯
ok real talk: this function writes intox. so make sure your array is actually big enough fornelements 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
- fedora 43: lis-doc 2.0.21-13.fc41 Β· BSD
- fedora 43: lis-doc 2.1.11-1.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: lis-doc 2.0.21-13.fc41 Β· BSD
- fedora 44: lis-doc 2.1.11-1.fc44 Β· LicenseRef-Callaway-BSD
- nixos 26.05: lis 2.1.10
- nixpkgs unstable: lis 2.1.16
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms