Hitmap 1.3
 All Data Structures Namespaces Files Functions Variables Typedefs Friends Macros Groups Pages
iohb.h
Go to the documentation of this file.
1 #ifndef IOHB_H
2 #define IOHB_H
3 
4 #include<stdio.h>
5 #include<stdlib.h>
6 #include<malloc.h>
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
11 int readHB_info(const char* filename, int* M, int* N, int* nz, char** Type,
12  int* Nrhs);
13 
14 int readHB_header(FILE* in_file, char* Title, char* Key, char* Type,
15  int* Nrow, int* Ncol, int* Nnzero, int* Nrhs,
16  char* Ptrfmt, char* Indfmt, char* Valfmt, char* Rhsfmt,
17  int* Ptrcrd, int* Indcrd, int* Valcrd, int* Rhscrd,
18  char *Rhstype);
19 
20 int readHB_mat_double(const char* filename, int colptr[], int rowind[],
21  double val[]);
22 
23 int readHB_newmat_double(const char* filename, int* M, int* N, int* nonzeros,
24  int** colptr, int** rowind, double** val);
25 
26 int readHB_aux_double(const char* filename, const char AuxType, double b[]);
27 
28 int readHB_newaux_double(const char* filename, const char AuxType, double** b);
29 
30 int writeHB_mat_double(const char* filename, int M, int N,
31  int nz, const int colptr[], const int rowind[],
32  const double val[], int Nrhs, const double rhs[],
33  const double guess[], const double exact[],
34  const char* Title, const char* Key, const char* Type,
35  char* Ptrfmt, char* Indfmt, char* Valfmt, char* Rhsfmt,
36  const char* Rhstype);
37 
38 int readHB_mat_char(const char* filename, int colptr[], int rowind[],
39  char val[], char* Valfmt);
40 
41 int readHB_newmat_char(const char* filename, int* M, int* N, int* nonzeros, int** colptr,
42  int** rowind, char** val, char** Valfmt);
43 
44 int readHB_aux_char(const char* filename, const char AuxType, char b[]);
45 
46 int readHB_newaux_char(const char* filename, const char AuxType, char** b, char** Rhsfmt);
47 
48 int writeHB_mat_char(const char* filename, int M, int N,
49  int nz, const int colptr[], const int rowind[],
50  const char val[], int Nrhs, const char rhs[],
51  const char guess[], const char exact[],
52  const char* Title, const char* Key, const char* Type,
53  char* Ptrfmt, char* Indfmt, char* Valfmt, char* Rhsfmt,
54  const char* Rhstype);
55 
56 int ParseIfmt(char* fmt, int* perline, int* width);
57 
58 int ParseRfmt(char* fmt, int* perline, int* width, int* prec, int* flag);
59 
60 void IOHBTerminate(char* message);
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif
int ParseRfmt(char *fmt, int *perline, int *width, int *prec, int *flag)
Definition: iohb.c:1525
int writeHB_mat_char(const char *filename, int M, int N, int nz, const int colptr[], const int rowind[], const char val[], int Nrhs, const char rhs[], const char guess[], const char exact[], const char *Title, const char *Key, const char *Type, char *Ptrfmt, char *Indfmt, char *Valfmt, char *Rhsfmt, const char *Rhstype)
Definition: iohb.c:1327
void IOHBTerminate(char *message)
Definition: iohb.c:1637
int readHB_header(FILE *in_file, char *Title, char *Key, char *Type, int *Nrow, int *Ncol, int *Nnzero, int *Nrhs, char *Ptrfmt, char *Indfmt, char *Valfmt, char *Rhsfmt, int *Ptrcrd, int *Indcrd, int *Valcrd, int *Rhscrd, char *Rhstype)
Definition: iohb.c:300
int readHB_mat_char(const char *filename, int colptr[], int rowind[], char val[], char *Valfmt)
Definition: iohb.c:926
int readHB_mat_double(const char *filename, int colptr[], int rowind[], double val[])
Definition: iohb.c:373
int readHB_aux_char(const char *filename, const char AuxType, char b[])
Definition: iohb.c:1119
int readHB_newmat_double(const char *filename, int *M, int *N, int *nonzeros, int **colptr, int **rowind, double **val)
Definition: iohb.c:521
int readHB_newaux_char(const char *filename, const char AuxType, char **b, char **Rhsfmt)
Definition: iohb.c:1287
int readHB_newmat_char(const char *filename, int *M, int *N, int *nonzeros, int **colptr, int **rowind, char **val, char **Valfmt)
Definition: iohb.c:1072
int readHB_aux_double(const char *filename, const char AuxType, double b[])
Definition: iohb.c:555
int readHB_info(const char *filename, int *M, int *N, int *nz, char **Type, int *Nrhs)
Definition: iohb.c:234
int writeHB_mat_double(const char *filename, int M, int N, int nz, const int colptr[], const int rowind[], const double val[], int Nrhs, const double rhs[], const double guess[], const double exact[], const char *Title, const char *Key, const char *Type, char *Ptrfmt, char *Indfmt, char *Valfmt, char *Rhsfmt, const char *Rhstype)
Definition: iohb.c:744
int ParseIfmt(char *fmt, int *perline, int *width)
Definition: iohb.c:1501
int readHB_newaux_double(const char *filename, const char AuxType, double **b)
Definition: iohb.c:720