lis_vector_set_value(3f)

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

πŸ’– 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 the i-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, the i-th row of the global vector must be specified instead of the i-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