lis_matrix_set_size(3f)

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

✨ NAME ✨

lis_matrix_set_size β€” bestie, this is the one that sets the size of your matrix πŸ’… (yes, this is a Lis Library Function, from the lis_matrix_set_size(3f) page, and she ate)


πŸ¦‹ SYNOPSIS πŸ¦‹

subroutine lis_matrix_set_size(LIS_MATRIX A, LIS_INTEGER local_n,
LIS_INTEGER global_n, LIS_INTEGER ierr);

🌸 DESCRIPTION 🌸

Okay so literally all this does is assign the size of matrix A. That's it. That's the whole vibe. πŸŽ€


πŸ’– INPUT πŸ’–

  • A β€” the matrix itself, the main character πŸ‘‘
  • local_n β€” the number of rows of the partial matrix
  • global_n β€” the number of rows of the global matrix

🫢 NOTE 🫢

Listen up because this part matters fr fr πŸ’€ β€” you gotta provide either local_n or global_n. Not neither. One of them, bestie.

In the serial and multithreaded environments, local_n is equal to global_n. So both lis_matrix_set_size(A,n,0) and lis_matrix_set_size(A,0,n) create a matrrix of size n x n. (Yes that typo is in the original and I'm keeping it, we don't gatekeep πŸ”₯)

For the multiprocessing environment, it's a lil different:

  • lis_matrix_set_size(A,n,0) creates a partial matrix of size n x N on each processing element, where N is the total sum of n.
  • On the other hand, lis_matrix_set_size(A,0,n) creates a partial matrix of size m_p x n on processing element p. The values of m_p are determined by the library. No cap, that's just how she runs ✨

🌈 SEE ALSO 🌈


And that's the whole page, gorgeous πŸ’œ β€” this was the Lis Library Functions page for lis_matrix_set_size(3f), dated 6 Sep 2012, and you absolutely understood all of it. Slay, go set some matrix sizes. πŸŽ€βœ¨

πŸ“¦ where this page comes from