rsaread.c

Interface for the fortran driver writen in skitf.f

Summary
rsaread.cInterface for the fortran driver writen in skitf.f
rsaReadHeaderInterface for <wreadmtc> to read header from file filename.
rsaReadRead matrix using wreadmtc fortran driver defined in skitf.f.

rsaReadHeader

void rsaReadHeader(char const *filename,
pastix_int_t *Nrow,
pastix_int_t *Ncol,
pastix_int_t *Nnzero,
char *Type,
char *RhsType)

Interface for <wreadmtc> to read header from file filename.

Parameters

filenamePath to the file to read from
NrowNumber of row
NcolNumber of column
NnzeroNumber of non zeros
TypeType of the matrix
RhsTypeType of the right hand side

rsaRead

void rsaRead(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)

Read matrix using wreadmtc fortran driver defined in skitf.f.  The return matrix is in CSC format, Nrow is equal to Ncol or you should get an error.

Parameters

filenamePath to the file to read from
NrowNumber of rows in matrix
NcolNumber of columns in matrix
NnzeroNumber of non zros in matrix
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 rsaReadHeader(char const *filename,
pastix_int_t *Nrow,
pastix_int_t *Ncol,
pastix_int_t *Nnzero,
char *Type,
char *RhsType)
Interface for wreadmtc to read header from file filename.
void rsaRead(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)
Read matrix using wreadmtc fortran driver defined in skitf.f.
Close