lis_matrix_set_bsr(3)

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

πŸ’– lis_matrix_set_bsr(3) πŸ’–

ok so bestie, welcome to the Lis Library Functions corner of the man pages 🌸 this one's about lis_matrix_set_bsr, and ngl it's a glow-up moment for your matrix. let's get into it 🫢


✨ NAME ✨

lis_matrix_set_bsr β€” associate the arrays in the BSR format with the matrix

like... you've got arrays in BSR format just sitting there, and this is the function that sets them up with the matrix. matchmaker behavior fr πŸ’…


🌈 SYNOPSIS 🌈

#include "lis.h"

LIS_INT lis_matrix_set_bsr(LIS_INT bnr, LIS_INT bnc, LIS_INT bnnz,
LIS_INT bptr[], LIS_INT bindex[], LIS_SCALAR value[], LIS_MATRIX A);

there she is πŸ‘‘ copy it exactly, no typos, the compiler is NOT forgiving and neither is the vibe check.


πŸ¦‹ DESCRIPTION πŸ¦‹

Associate the arrays in the BSR format with matrix A. that's the whole job. it's giving matchmaker, it's giving "these arrays belong to this matrix now, periodt" ✨


πŸŽ€ INPUT πŸŽ€

the stuff you gotta hand over, bestie:

  • bnr β€” The row block size πŸ“
  • bnc β€” The column block size πŸ“
  • bnnz β€” The number of nonzero blocks πŸ”’
  • bptr, bindex, value β€” The arrays in the BSR format πŸ’–
  • A β€” The matrix πŸ‘‘

πŸ’… OUTPUT πŸ’…

  • A β€” The matrix associated with the arrays 🌟

she's been through a transformation and she looks stunning


⭐ EXIT STATUS ⭐

The following exit values are returned:

  • 0 β€” The process is normally terminated βœ… iconic, no notes
  • unspecified β€” An error occurred 😭 not the vibe, something went wrong

πŸ”₯ NOTE πŸ”₯

After lis_matrix_set_bsr is called, the function lis_matrix_assemble must be called. 🚨

like, no skipping this step bestie, it's not optional. lis_matrix_set_bsr alone is just the setup β€” lis_matrix_assemble is the main character moment that actually finishes the job. skip it and nothing works, iykyk πŸ’€


🌸 SEE ALSO 🌸


and that's the whole page, bestie πŸŽ€ go forth and set those BSR arrays, you absolute legend ✨

Man Page Β· 6 Sep 2012 Β· lis_matrix_set_bsr(3) β€” mwah, sending you off with a kiss and a correctly assembled matrix πŸ’‹πŸ’–

πŸ“¦ where this page comes from