1lis_matrix_set_type(3) Lis Library Functions lis_matrix_set_type(3)
2
3
4
6 lis_matrix_set_type - assign the storage format
7
8
10 #include "lis.h"
11
12 LIS_INT lis_matrix_set_type(LIS_MATRIX A, LIS_INT matrix_type);
13
14
16 Assign the storage format.
17
18
20 A The matrix
21
22
23 matrix_type
24 The storage format
25
26
29 The following exit values are returned:
30
31 0 The process is normally terminated
32
33 unspecified
34 An error occurred
35
36
38 matrix_type of A is LIS_MATRIX_CSR when the matrix is created. The ta‐
39 ble below shows the available storage formats for matrix_type.
40
41
42 Storage format matrix_type
43 Compressed Sparse Row (CSR) {LIS_MATRIX_CSR|1}
44 Compressed Sparse Row (CSR) {LIS_MATRIX_CSR|1}
45 Compressed Sparse Column (CSC) {LIS_MATRIX_CSC|2}
46 Modified Compressed Sparse Row (MSR) {LIS_MATRIX_MSR|3}
47 Diagonal (DIA) {LIS_MATRIX_DIA|4}
48 Ellpack-Itpack Generalized Diagonal (ELL) {LIS_MATRIX_ELL|5}
49 Jagged Diagonal (JAD) {LIS_MATRIX_JAD|6}
50 Block Sparse Row (BSR) {LIS_MATRIX_BSR|7}
51 Block Sparse Column (BSC) {LIS_MATRIX_BSC|8}
52 Variable Block Row (VBR) {LIS_MATRIX_VBR|9}
53 Coordinate (COO) {LIS_MATRIX_COO|10}
54 Dense (DNS) {LIS_MATRIX_DNS|11}
55
56
58 lis(3)
59
60 http://www.ssisc.org/lis/
61
62
63
64
65Man Page 6 Sep 2012 lis_matrix_set_type(3)