lis_matrix_set_value(3)

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

πŸ’– lis_matrix_set_value β€” bestie's guide to yeeting a value into a matrix πŸ’–

okay so this is a page from the Lis Library Functions manual (section 3, the library-functions girlies πŸ’…), and it's about lis_matrix_set_value. it's giving "let me put ONE little number exactly where it belongs." no cap.


✨ NAME ✨

lis_matrix_set_value β€” assign the scalar value to the element of the matrix 🫢


🌸 SYNOPSIS 🌸

#include "lis.h"

LIS_INT lis_matrix_set_value(LIS_INT flag, LIS_INT i, LIS_INT j,
LIS_SCALAR value, LIS_MATRIX A);

like yes she takes five args and she's not sorry about it πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

Assign the scalar value to the (i, j)-th element of matrix A. that's it. that's the whole vibe. one number, one slot, main character energy ✨


πŸ‘‘ INPUT πŸ‘‘

  • flag β€” the little mode switch that decides how the value gets dropped in πŸ‘‡
    • LIS_INS_VALUE β€” straight up insert mode, babes: A[i, j] = value
    • LIS_ADD_VALUE β€” add-to-what's-already-there mode: A[i, j] = A[i, j] + value
  • i β€” The row number of the matrix πŸ“
  • j β€” The column number of the matrix πŸ“
  • value β€” The scalar value to be assigned πŸ’–
  • A β€” The matrix 🧚

🌈 OUTPUT 🌈

  • A β€” The matrix πŸ’œ (she's been updated, she's different now, glow-up complete)

πŸ’€ EXIT STATUS πŸ’€

The following exit values are returned:

  • 0 β€” The process is normally terminated πŸŽ‰ everything slayed, no notes
  • unspecified β€” An error occurred 😭 something went wrong and the vibes are off

πŸŽ€ NOTE πŸŽ€

For the multiprocessing environment, the i-th row and the j-th column of the global matrix must be specified. iykyk β€” don't go handing her local coordinates and then act surprised.

The function lis_matrix_set_value stores the assigned value in a temporary internal format. Therefore, after lis_matrix_set_value is called, the function lis_matrix_assemble must be called. fr fr, do NOT forget this one β€” you set the value, then you assemble, periodt. πŸ™ˆ


πŸ”₯ SEE ALSO πŸ”₯


that's the whole page bestie, go forth and populate your matrix πŸ’…βœ¨

this icon was lovingly served up as lis_matrix_set_value(3) from the Lis Library Functions, dated 28 Aug 2014 β€” catch you in the man pages, mwah πŸ«ΆπŸ’–

πŸ“¦ where this page comes from