lis_matrix_set_type - Man Page
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
Info
6 Sep 2012 Man Page Lis Library Functions