lis_matrix_convert(3)

NAME
lis_matrix_convert - convert the matrix format

SYNOPSIS
#include "lis.h" LIS_INT lis_matrix_convert(LIS_MATRIX Ain, LIS_MATRIX Aout);

DESCRIPTION
Convert matrix Ain into Aout of the format specified by lis_matrix_set_type.

INPUT

Ain The source matrix

OUTPUT

Aout
    The destination matrix

EXIT STATUS
The following exit values are returned:

0   The process is normally terminated

unspecified
    An error occurred

NOTE
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

SEE ALSO
lis(3)

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