lis_matrix_set_type(3)

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);

DESCRIPTION
Assign the storage format.

INPUT

A   The matrix

matrix_type
    The storage format

OUTPUT

EXIT STATUS
The following exit values are returned:

0   The process is normally terminated

unspecified
    An error occurred

NOTE
matrix_type of A is LIS_MATRIX_CSR when the matrix is created. The table below shows the available storage formats for matrix_type.
Storage format | matrix_type
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}

SEE ALSO
lis(3)

http://www.ssisc.org/lis/