lis_matrix_convert(3f)

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

✨ NAME ✨

lis_matrix_convert β€” convert the matrix format πŸ’…

okay so real quick bestie, this one lives in the Lis Library Functions collection, and the page itself is lis_matrix_convert(3f) β€” a Fortran-callable routine, no cap. Its whole job? Glow-up your matrix from one storage format into another. Slay. πŸ¦‹


🌸 SYNOPSIS 🌸

subroutine lis_matrix_convert(LIS_MATRIX Ain, LIS_MATRIX Aout, LIS_INTEGER ierr);

πŸ’– DESCRIPTION πŸ’–

Convert matrix Ain into Aout of the format specified by lis_matrix_set_type.

That's literally it. You hand it a matrix, it hands you back the same matrix wearing a different outfit, and the outfit is whatever you told lis_matrix_set_type to put it in. Iconic behavior honestly. πŸ‘‘


πŸŽ€ INPUT πŸŽ€

  • Ain β€” The source matrix. this is the one you're converting FROM, your before pic πŸ“Έ

🧚 OUTPUT 🧚

  • Aout β€” The destination matrix. this is the after pic, freshly formatted ✨

πŸ’… NOTE πŸ’…

okay here's the tea, and it's important tea:

  • The storage format of the Aout is set by lis_matrix_set_type. You gotta tell it what you want BEFORE, bestie.
  • The block size of the BSR, BSC, and VBR formats is set by lis_matrix_set_blocksize. Those three care about block size, the rest don't. 🫢
  • The conversions indicated by 1 in the table below are performed directly β€” no detours, straight shot.
  • The other ones are performed via the indicated formats β€” so like, it takes a lil connecting flight through whatever format is named in the cell.
  • The conversions with no indication are performed via the CSR format. CSR is the main character of the airport, everyone connects through it. ✈️

And here's the full conversion map, verbatim, every single cell, no edits, no crumbs left behind:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”
β”‚ Src/Dst β”‚  CSR β”‚  CSC β”‚  MSR β”‚  DIA β”‚  ELL β”‚  JAD β”‚  BSR β”‚  BSC β”‚  VBR β”‚  COO β”‚  DNS β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€
β”‚ CSR     β”‚      β”‚  1   β”‚  1   β”‚  1   β”‚  1   β”‚  1   β”‚  1   β”‚  CSC β”‚  1   β”‚  1   β”‚  1   β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€
β”‚ COO     β”‚  1   β”‚  1   β”‚  1   β”‚  CSR β”‚  CSR β”‚  CSR β”‚  CSR β”‚  CSC β”‚  CSR β”‚      β”‚  CSR β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”˜
πŸ‘€ little vibe check on the blank cells: a CSR β†’ CSR conversion has no 1 and no format named, so it goes via CSR (which, yeah, it already is CSR). And a COO β†’ COO conversion is the same deal β€” no indication, so it routes through CSR. The table is telling you the routing, not judging you. πŸ’€

🌈 SEE ALSO 🌈


that's the whole page bestie, you ate it up πŸ“ this was the Man Page for lis_matrix_convert(3f), dated 6 Sep 2012. go forth and convert, mwah πŸ’‹

πŸ“¦ where this page comes from