lis_matrix_set_type(3)
π lis_matrix_set_type(3) β the one where you pick your matrix's whole storage vibe
okay bestie, sit down, we're doing Lis Library Functions and this page is literally called lis_matrix_set_type(3). it's giving "choose your own adventure but the adventure is memory layout" β¨
πΈ NAME πΈ
lis_matrix_set_type β assign the storage format π
β¨ SYNOPSIS β¨
#include "lis.h"
LIS_INT lis_matrix_set_type(LIS_MATRIX A, LIS_INT matrix_type);
like. that's it. one call. she's small but she's powerful π
π¦ DESCRIPTION π¦
Assign the storage format. yes queen, you heard her β you're telling the matrix A which storage format she's gonna live in from now on. it's a whole glow-up for your data structure and honestly? iconic π
π INPUT π
Aβ The matrix. your girl. the one getting the makeover.matrix_typeβ The storage format. the aesthetic you're committing to.
π OUTPUT π
nothing, bestie. this function doesn't hand you anything back. it just... does the thing. lowkey mysterious of her π
π₯ EXIT STATUS π₯
The following exit values are returned:
0β The process is normally terminated. slay, we love a clean exit πunspecifiedβ An error occurred. not the vibe. not the vibe at all π
π«Ά NOTE π«Ά
no cap, this part matters:matrix_typeofAisLIS_MATRIX_CSRwhen the matrix is created. so she starts as CSR by default. that's just her factory setting, periodt.
here's every storage format you can set her to (the table below shows the available storage formats for matrix_type β and yes, CSR shows up twice in the original, so I'm keeping it twice, I don't make the rules):
- Compressed Sparse Row (CSR) β
{LIS_MATRIX_CSR|1} - Compressed Sparse Row (CSR) β
{LIS_MATRIX_CSR|1} - Compressed Sparse Column (CSC) β
{LIS_MATRIX_CSC|2} - Modified Compressed Sparse Row (MSR) β
{LIS_MATRIX_MSR|3} - Diagonal (DIA) β
{LIS_MATRIX_DIA|4} - Ellpack-Itpack Generalized Diagonal (ELL) β
{LIS_MATRIX_ELL|5} - Jagged Diagonal (JAD) β
{LIS_MATRIX_JAD|6} - Block Sparse Row (BSR) β
{LIS_MATRIX_BSR|7} - Block Sparse Column (BSC) β
{LIS_MATRIX_BSC|8} - Variable Block Row (VBR) β
{LIS_MATRIX_VBR|9} - Coordinate (COO) β
{LIS_MATRIX_COO|10} - Dense (DNS) β
{LIS_MATRIX_DNS|11}
twelve entries, eleven formats, one duplicate, zero notes. that's the whole menu, bestie β pick your fighter π
π SEE ALSO π
okay that's the whole page, go forth and set your types responsibly. this has been Lis Library Functions, dated 6 Sep 2012, living in the man page files as lis_matrix_set_type(3). mwah, bye bestie π¦πβ¨
π¦ where this page comes from
- fedora 43: lis-doc 2.0.21-13.fc41 Β· BSD
- fedora 43: lis-doc 2.1.11-1.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: lis-doc 2.0.21-13.fc41 Β· BSD
- fedora 44: lis-doc 2.1.11-1.fc44 Β· LicenseRef-Callaway-BSD
- nixos 26.05: lis 2.1.10
- nixpkgs unstable: lis 2.1.16
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms