lis_matrix_convert - convert the matrix format
#include "lis.h"
LIS_INT lis_matrix_convert(LIS_MATRIX Ain,
LIS_MATRIX Aout);
Convert matrix Ain into Aout of the format specified by
lis_matrix_set_type.
- Aout
- The destination matrix
The following exit values are returned:
- 0
- The process is normally terminated
- unspecified
- An error occurred
The storage format of the Aout is set by lis_matrix_set_type. The
block size of the BSR, BSC, and VBR formats is set by
lis_matrix_set_blocksize. The conversions indicated by 1 in the table
below are performed directly, and the other ones are performed via the
indicated formats. The conversions with no indication are performed via the
CSR format.
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 |
lis(3)
http://www.ssisc.org/lis/