lis_matrix_malloc(3)

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

✨ lis_matrix_malloc(3) ✨

okay so bestie, welcome to the Lis Library Functions corner of the manual πŸ’– this one's called lis_matrix_malloc and it's literally the "hey can I get some memory pls" function. no cap.


🌸 NAME 🌸

lis_matrix_malloc β€” allocate the memory for the matrix 🧠✨


πŸŽ€ SYNOPSIS πŸŽ€

#include "lis.h"

LIS_INT lis_matrix_malloc(MATRIX A, LIS_INT nnz_row, LIS_INT nnz[]);

πŸ¦‹ DESCRIPTION πŸ¦‹

It allocates the memory for matrix A. That's it, that's the whole vibe. She's a memory-allocation girlie and she's serving 🫢


πŸ’… INPUT πŸ’…

  • A β€” the matrix. the main character. the one we're setting up πŸŽ€
  • nnz_row β€” the average number of nonzero elements. yes, average. iconic behaviour honestly.
  • nnz β€” the array of the numbers of the nonzero elements in each row. so like, per-row detail, one number for each row, no cap πŸ“‹

πŸ™ˆ OUTPUT πŸ™ˆ

None. she takes, she doesn't give back. lowkey mysterious of her πŸ’€


⭐ EXIT STATUS ⭐

here's what she returns when she's done:

  • 0 β€” the process is normally terminated. slay ✨
  • unspecified β€” an error occurred 😭 something went sideways bestie

πŸ”₯ NOTE πŸ”₯

Either nnz_row or nnz must be provided. like, pick one, you have to give her something fr fr. don't show up empty-handed πŸ’…

🌈 SEE ALSO 🌈


okay that's the whole page bestie πŸ’œ iykyk. this beauty landed in the world on 6 Sep 2012 and she's still out here allocating memory like the queen she is πŸ‘‘ go forth and malloc, and remember: the man page is dated 6 Sep 2012, so she's vintage and we love her for it πŸŽ€βœ¨

πŸ“¦ where this page comes from