OpenAtom  Version1.5a
matrix2file.h
1 #include "ckcomplex.h"
2 
3 #ifndef MATRIX_2_FILE_H
4 #define MATRIX_2_FILE_H
5 
6 #include "debug_flags.h"
7 
8 //@{
9 /// Matrix read/write utils
10 void dumpMatrix(const char *infilename, double *matrix, int xdim, int ydim,int w,int x,int y, int z, bool symmetric);
11 void dumpMatrix(const char *infilename, complex *matrix, int xdim, int ydim,int w,int x,int y, int z, bool symmetric);
12 void loadMatrix(const char *infilename, double *matrix, int xdim, int ydim,int w,int x,int y, int z, bool symmetric);
13 void loadMatrix(const char *infilename, complex *matrix, int xdim, int ydim,int w,int x,int y, int z, bool symmetric);
14 void dumpMatrix2DDouble(const char *infilename, double **matrix, int xdim, int ydim,int w,int x,int y, int z, bool symmetric);
15 void loadMatrix2DDouble(const char *infilename, double **matrix, int xdim, int ydim,int w,int x,int y, int z, bool symmetric);
16 void dumpMatrix2DInt(const char *infilename, int **matrix, int xdim, int ydim,int w,int x,int y, int z, bool symmetric);
17 void loadMatrix2DInt(const char *infilename, int **matrix, int xdim, int ydim,int w,int x,int y, int z, bool symmetric);
18 //@}
19 
20 #endif // MATRIX_2_FILE_H
21 
Useful debugging flags.