lis_vector_set_values(3)

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

πŸ’– 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 assigned
  • value β€” The scalar value to be assigned
  • v β€” The destination vector (where the magic lands 🌈)

πŸ‘‘ OUTPUT πŸ‘‘

  • v β€” The vector with the scalar value assigned to the i-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, the i-th row of the global vector must be specified instead of the i-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