lis_vector_set_values(3f)
π 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 thei-th row. glow-up complete. β¨
π NOTE π
For the multiprocessing environment, thei-th row of the global vector must be specified instead of thei-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
- 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