lis_vector_set_values(3f)

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

πŸ’– lis_vector_set_values(3f) β€” the Lis Library function that yeets your scalars into a vector πŸ’–

okay bestie, listen up, because this one is a Lis Library Function and it's giving "I just wanna put some numbers somewhere specific." It's lis_vector_set_values, manual section 3f, and honestly? She's a baddie. πŸŽ€


✨ SYNOPSIS ✨

subroutine lis_vector_set_values(LIS_INTEGER flag, LIS_INTEGER count,
LIS_INTEGER index[], LIS_SCALAR value[], LIS_VECTOR v, LIS_INTEGER
ierr);

like. look at her. six arguments. no notes. πŸ’…


🌸 DESCRIPTION 🌸

So here's the tea: lis_vector_set_values assigns scalar value[i] to the index[i]-th row of the vector v, where [i]=0,1,...,[count]-1. πŸ¦‹

That's it. That's the whole vibe. You bring the indices, you bring the values, she handles the placement. main character behavior fr fr.


🫢 INPUT 🫢

  • flag β€” the mood-setter. She decides how your value lands, and there are exactly two choices, no cap:
    • LIS_INS_VALUE β€” insert mode, periodt:
v[index[i]] = value[i]
  • LIS_ADD_VALUE β€” accumulate mode, aka "add it to whatever's already there, bestie":
v[index[i]] = v[index[i]] + value[i]
  • i β€” the location where the value is assigned. πŸ“
  • value β€” the scalar value to be assigned. your actual little number, hand-delivered. πŸ’–
  • v β€” the destination vector. she's receiving. πŸ‘‘

⭐ OUTPUT ⭐

  • v β€” the vector with the scalar value assigned to the i-th row. glow-up complete. ✨

πŸ’€ NOTE πŸ’€

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.

not me stressing about this one 😭 fr though, if you're in a multiprocessing situation, don't come at her with partial-vector indices. global rows only. she said what she said.


🌈 SEE ALSO 🌈


okay that's the whole page, ily, go assign some scalars responsibly πŸ’œ

kisses from the Lis Library Functions crew β€” Man Page, 6 Sep 2012 πŸŽ€βœ¨

πŸ“¦ where this page comes from