lis_vector_set_values(3)
π lis_vector_set_values(3) π
okay bestie, this one lives in the Lis Library Functions family, so you already know it's giving serious linear-solver energy β¨
πΈ NAME πΈ
lis_vector_set_values β assign the scalar values to the rows of the vector π«Ά
β¨ SYNOPSIS β¨
#include "lis.h"
LIS_INT lis_vector_set_values(LIS_INT flag, LIS_INT count, LIS_INT index[], LIS_SCALAR value[], LIS_VECTOR v);
π¦ DESCRIPTION π¦
So here's the vibe: you're taking value[i] and you're assigning it to the index[i]-th row of the vector v, where [i]=0,1,...,[count]-1. like, one by one, cute little scalars finding their homes π
π INPUT π
flagβ the mode selector, and it's giving two options bestie:LIS_INS_VALUE
v[index[i]] = value[i]
straight up insert, no math, just placing it there π
LIS_ADD_VALUE
v[index[i]] = v[index[i]] + value[i]
adding on top of whatever was already chilling in that row β¨
iβ The location where the value is assignedvalueβ The scalar value to be assignedvβ The destination vector (where the magic lands π)
π OUTPUT π
vβ The vector with the scalar value assigned to thei-th row π«Ά
π EXIT STATUS π
The following exit values are returned:
0β The process is normally terminated π- unspecified β An error occurred π
π₯ NOTE π₯
For the multiprocessing environment, thei-th row of the global vector must be specified instead of thei-th row of the partial vector. no cap, this one matters or you'll be so confused π
β SEE ALSO β
and that's the whole page, bestie β written up on the 6 Sep 2012, part of the Lis Library Functions era, and honestly? iconic. periodt π
π¦ 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