lis_matrix_set_vbr(3)

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

πŸ’– lis_matrix_set_vbr(3) β€” the one from the Lis Library Functions ✨

okay bestie, sit down, hydrate, because we're about to associate some arrays with a matrix and it's honestly kind of a slay 🫢


🌸 NAME 🌸

lis_matrix_set_vbr β€” associate the arrays in the VBR format with the matrix πŸ’…


✨ SYNOPSIS ✨

#include "lis.h"

LIS_INT lis_matrix_set_vbr(LIS_INT nnz, LIS_INT nr, LIS_INT nc, LIS_INT
bnnz, LIS_INT row[], LIS_INT col[], LIS_INT ptr[], LIS_INT bptr[],
LIS_INT bindex[], LIS_SCALAR value[], LIS_MATRIX A);

like… look at her. eleven arguments and she's serving every single one πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

So basically: this function associates the arrays in the VBR format with matrix A. That's the whole job. She takes your VBR-format arrays and she hands them over to A. no cap, that's it, that's the vibe 🌈


πŸŽ€ INPUT πŸŽ€

  • nnz β€” the number of nonzero elements πŸ”’
  • nr β€” the number of row blocks
  • bnc β€” the number of column blocks πŸ‘€ (yes, the synopsis up there calls this one nc, and down here the page says bnc β€” I'm just telling you what's on the page, don't come for me)
  • bnnz β€” the number of nonzero blocks 🧱
  • row, col, ptr, bptr, bindex, value β€” the arrays in the VBR format. all of them. the whole squad πŸ’œ
  • A β€” the matrix 🫢

🌟 OUTPUT 🌟

  • A β€” the matrix associated with the arrays ✨ (she's been through a glow-up, she now has the arrays)

πŸ’€ EXIT STATUS πŸ’€

the following exit values are returned:

  • 0 β€” the process is normally terminated 😌 slay, we love a clean exit
  • unspecified β€” an error occurred 😭 not the vibe, something went wrong

🚨 NOTE 🚨

okay this part is IMPORTANT bestie, do not skip it: after lis_matrix_set_vbr is called, the function lis_matrix_assemble must be called. like, must must. you don't get to skip this step, she's not done until you assemble her πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the page!! πŸŽ€ shoutout to the Lis Library Functions manual, dated 6 Sep 2012, page lis_matrix_set_vbr(3) β€” go forth, associate those arrays, and call lis_matrix_assemble afterwards or I will know πŸŒΈπŸ’–βœ¨

πŸ“¦ where this page comes from