65template <
typename T>
void read_datafileVS(std::vector<T> &data,
int &nrows,
int &ncols,
const char *filename);
92void write_datafile(
const std::vector<T> &data,
const int &nrows,
const int &ncols,
const char *storage,
const char *filename,
const char *action);
1D Array class for any type T
2D Array class for any type T
void read_datafile_1d(Array1D< T > &data, const char *filename)
Read a data from filename in a vector form and store it in a 1d array data of typename T.
Definition arrayio.cpp:355
void read_datafile(Array2D< T > &data, const char *filename)
Read a datafile from filename in a matrix form and store it in the 2d array data of typename T.
Definition arrayio.cpp:38
void write_datafile(const Array2D< T > &data, const char *filename, const char *action)
Write/append the contents of a 2d array data of typename T to file filename in a matrix form.
Definition arrayio.cpp:525
void write_datafile_size(const Array2D< T > &data, const char *filename)
Write to file filename the number of rows and number of columns on the first line,...
Definition arrayio.cpp:448
void write_datafile_1d(const Array1D< T > &data, const char *filename)
Write the contents of a 1d array data of typename T to file filename in a vector form.
Definition arrayio.cpp:653
void read_datafileVS(Array2D< T > &data, const char *filename)
Read a datafile from filename in a matrix form and store it in the 2d array data if typename T.
Definition arrayio.cpp:94
Stores data of any type T in a 1D array.
Definition Array1D.h:61
Stores data of any type T in a 2D array.
Definition Array2D.h:60