lis_vector_scale(3f)
β¨ 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 valuealpha. 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(vectorxis 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
- 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