threetilesread.c

Reads matrix from three files in IJV separated format.

Summary
threetilesread.cReads matrix from three files in IJV separated format.
threeFilesReadHeaderRead header from three file IJV format.
threeFilesReadRead matrix from three files IJV

threeFilesReadHeader

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

Read header from three file IJV format.

Header contains

Nrow Ncol Nnzero

or

Ncol
Nnzero

Parameters

infilefile to read header from
NrowNumber of rows
NcolNumber of columns
NnzeroNumber of non zeros
TypeType of the matrix (always “RUA”)

threeFilesRead

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

Read matrix from three files IJV

header file is “filename”/header columns file is “filename”/ia_threeFiles rows file is “filename”/ja_threeFiles values file is “filename”/ra_threeFiles

header is describde in threeFilesReadHeader each other file contain one element by line.

Parameters

dirnamePath to the directory containing matrix
NcolNumber of columns
NrowNumber of rows
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 threeFilesReadHeader(FILE *infile,
pastix_int_t *Nrow,
pastix_int_t *Ncol,
pastix_int_t *Nnzero,
char *Type)
Read header from three file IJV format.
void threeFilesRead(char const *dirname,
pastix_int_t *Ncol,
pastix_int_t *Nrow,
pastix_int_t *Nnzero,
pastix_int_t **col,
pastix_int_t **row,
pastix_float_t **val,
char **Type,
char **RhsType)
Read matrix from three files IJV
Close