lis_matrix_set_csr(3)

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

πŸ’– lis_matrix_set_csr β€” bestie edition πŸ’–

okay so this is a page from the Lis Library Functions manual, section 3, and it's all about lis_matrix_set_csr ✨


🌸 NAME 🌸

lis_matrix_set_csr β€” it associates the arrays in the CSR format with the matrix 🫢


✨ SYNOPSIS ✨

#include "lis.h"

LIS_INT lis_matrix_set_csr(LIS_INT nnz, LIS_INT ptr[], LIS_INT index[],
LIS_SCALAR value[], LIS_MATRIX A);

πŸ’… DESCRIPTION πŸ’…

So basically you're taking your arrays in the CSR format and gluing them onto matrix A. That's it, that's the whole vibe πŸ’–


πŸŽ€ INPUT πŸŽ€

  • nnz β€” the number of nonzero elements πŸ”’
  • ptr, index, value β€” the arrays in the CSR format πŸ‘‘ (yes, all three, they're a package deal)
  • A β€” the matrix πŸ¦‹

πŸ“ OUTPUT πŸ“

  • A β€” the matrix, now associated with the arrays. glow up complete ✨

πŸ’€ EXIT STATUS πŸ’€

here's what you can get back:

  • 0 β€” the process is normally terminated, slay πŸ’…
  • unspecified β€” an error occurred 😭 (no further info, it's giving mystery)

🌈 NOTE 🌈

okay this is important bestie, do NOT forget: after lis_matrix_set_csr is called, the function lis_matrix_assemble must be called. like, must. no skipping. periodt πŸ’œ

🧚 SEE ALSO 🧚


and that's the whole page, fr fr πŸ’– this was the man page for Lis Library Functions, dated 6 Sep 2012 β€” thanks for reading, ily, go call lis_matrix_assemble 🫢✨

πŸ“¦ where this page comes from