cccread.c

Reads file in ccc format.

Summary
cccread.cReads file in ccc format.
cccReadHeaderReads header from a file in ccc matrix format.
cccReadReads Matrix in ccc format.

cccReadHeader

void cccReadHeader(FILE *infile,
pastix_int_t *Nrow,
pastix_int_t *Ncol,
pastix_int_t *Nnzero,
char *Type)

Reads header from a file in ccc matrix format.  Nrow is equal to Ncol.  Type is “CSA” if SYMPART is defined (default) “CUA” otherwise.

File format is like :

Ncol Nnzero

Parameters

infileFile to read from.
NrowNumber of rows
NcolNumber of columns
NnzeroNumber of non zeros
TypeType of the matrix

cccRead

void cccRead(char const *filename,
pastix_int_t *Nrow,
pastix_int_t *Ncol,
pastix_int_t *Nnzero,
pastix_int_t **col,
pastix_int_t **row,
pastix_float_t **val,
char **Type,
char **RhsType)

Reads Matrix in ccc format.

Header format is described in cccReadHeader, “filename”/hfile contains columns Enf of the matrix is in three files in CSC format : “filename”/ifile contains Ncol columns, “filename”/jfile contains Nnzeros rows, “filename”/afile contains Nnzeros values.

Parameters

filenamePath to the directory containing hfile, ifile, jfile and afile
NrowNumber of rows
NcolNumber of columns
NnzeroNumber of non zeros
colIndex of first element of each column in row and val
rowRow of eah element
valValue of each element
TypeType of the matrix
RhsTypeType of the right hand side.
void cccReadHeader(FILE *infile,
pastix_int_t *Nrow,
pastix_int_t *Ncol,
pastix_int_t *Nnzero,
char *Type)
Reads header from a file in ccc matrix format.
void cccRead(char const *filename,
pastix_int_t *Nrow,
pastix_int_t *Ncol,
pastix_int_t *Nnzero,
pastix_int_t **col,
pastix_int_t **row,
pastix_float_t **val,
char **Type,
char **RhsType)
Reads Matrix in ccc format.
Close