lis_vector_set_value(3f)
π lis_vector_set_value(3f) β the "put a number in the vector" page π
okay so bestie, welcome to lis_vector_set_value(3f), one of the Lis Library Functions β the Fortran-callable ones, iykyk π¦. She's little, she's simple, she's lowkey iconic, and she does exactly one thing: she slides a scalar into a row of your vector. no cap. let's get into it β¨
πΈ NAME πΈ
lis_vector_set_value β assign the scalar value to the row of the vector π
fr fr that's the whole job. one value, one row, zero drama π
β¨ SYNOPSIS β¨
subroutine lis_vector_set_value(LIS_INTEGER flag, LIS_INTEGER i,
LIS_SCALAR value, LIS_VECTOR v, LIS_INTEGER ierr);
five arguments, that's it. so clean, so demure πΈ
π DESCRIPTION π
Assign the scalar value to the i-th row of the vector v.
that's literally it bestie. you hand her a flag telling her how to combine the value with what's already there, a row index, the scalar itself, and the destination vector β and she goes to work. main character energy, no notes π
π INPUT π
flagβ the vibe selector. it tells her whether you're replacing what's in that row or adding to it:LIS_INS_VALUEβv[i] = valueπ so she inserts your value, straight up, no math, no questions asked.LIS_ADD_VALUEβv[i] = v[i] + valueβ¨ so she takes whatever's already chillin' in that row, adds your value on top, and that's the new situation. it's giving teamwork.
iβ The location where the value is assigned π that's your row index, bestie.valueβ The scalar value to be assigned. the actual number, the moment, the whole point πvβ The destination vector. she's the one receiving the glow-up π«Ά
π« OUTPUT π«
vβ The vector with the scalar value assigned to thei-th row. she came in mid, she leaves slaying π
π₯ NOTE π₯
heads up bestie, this one's important for the parallel girlies β For the multiprocessing environment, thei-th row of the global vector must be specified instead of thei-th row of the partial vector. like, global indexing, periodt. don't @ me with your local index, she will not know what you mean π
π SEE ALSO π
lis(3)β go meet the whole family, she's just one of the girls π- http://www.ssisc.org/lis/ β the mothership, the source, the website β¨
π sign-off π
that's the page, bestie!! this little cutie comes to you from the Lis Library Functions manual, dated 6 Sep 2012 β vintage but still serving π. now go set some values, you absolute legend π¦πβ¨
π¦ 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