peerread.h

Reads a matrix in PEER format.

Summary
peerread.hReads a matrix in PEER format.
peerReadReads a matrix in PEER format.
peerRead2Reads a matrix in PEER format.

peerRead

void peerRead(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,
pastix_float_t **rhs)

Reads a matrix in PEER format.

first file contain :

NumberOfFiles
file1
file2
...

each file contains

%ld%ld          (globaln localn)
%ld             (local nnzeros)

four elements from col by line, nnzeros local elements in total, four elements from row by line, nnzeros local elements in total, four elements from val by line, nnzeros local elements in total, four elements from rhs by line, nnzeros local elements in total,

for each part, last line can be with 1, 2 ,3 or 4 elements.

Parameters

filenamePath to file to read from
NrowNumber of rows
NcolNumber of columns
Nnzero,Number 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.
rhsright-hand-side term(s)

peerRead2

void peerRead2(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,
pastix_float_t **rhs)

Reads a matrix in PEER format.

first file contain :

NumberOfFiles
file1
file2
...

each file contains

%ld %ld %ld  (globaln localn  localnnzeros)

six elements from col by line, localnnzeros elements in total, six elements from row by line, localnnzeros elements in total, six elements from val by line, localnnzeros elements in total, six elements from rhs by line, localnnzeros elements in total,

for each part, last line can be with 1, 2 ,3 , 4, 5 or 6 elements.

Parameters

filenamePath to file to read from
NrowNumber of rows
NcolNumber of columns
Nnzero,Number 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.
rhsright-hand-side term(s)
void peerRead(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,
pastix_float_t **rhs)
Reads a matrix in PEER format.
void peerRead2(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,
pastix_float_t **rhs)
Reads a matrix in PEER format.
Close