UQTk: Uncertainty Quantification Toolkit 3.1.5
|
Read/write capabilities from/to matrix or vector form arrays/files. More...
#include "arrayio.h"
Functions | |
template<typename T > | |
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. | |
template void | read_datafile (Array2D< double > &data, const char *filename) |
template void | read_datafile (Array2D< int > &data, const char *filename) |
template<typename T > | |
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. | |
template void | read_datafileVS (Array2D< double > &data, const char *filename) |
template void | read_datafileVS (Array2D< int > &data, const char *filename) |
template<typename T > | |
void | read_datafileVS (Array1D< Array1D< T > > &data, const char *filename) |
template void | read_datafileVS (Array1D< Array1D< double > > &data, const char *filename) |
template void | read_datafileVS (Array1D< Array1D< int > > &data, const char *filename) |
template<typename T > | |
void | read_datafileVS (std::vector< T > &data, int &nrows, int &ncols, const char *filename) |
Read a datafile from filename in a matrix form and store it in a std::vector in column-major storage scheme. | |
template void | read_datafileVS (std::vector< double > &data, int &nrows, int &ncols, const char *filename) |
template void | read_datafileVS (std::vector< int > &data, int &nrows, int &ncols, const char *filename) |
template<typename 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. | |
template void | read_datafile_1d (Array1D< double > &data, const char *filename) |
template void | read_datafile_1d (Array1D< int > &data, const char *filename) |
template<typename T > | |
void | read_datafileVS (Array1D< T > &data, const char *filename) |
Read a datafile from filename in a vector form and store it in the 1d array data of typename T. | |
template void | read_datafileVS (Array1D< double > &data, const char *filename) |
template void | read_datafileVS (Array1D< int > &data, const char *filename) |
template<typename T > | |
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, followed by the contents of a 2d array data of typename T in a matrix form. | |
template void | write_datafile_size (const Array2D< double > &data, const char *filename) |
template void | write_datafile_size (const Array2D< int > &data, const char *filename) |
template<typename T > | |
void | write_datafile (const Array2D< T > &data, const char *filename) |
Write the contents of a 2d array data of typename T to file filename in a matrix form. | |
template void | write_datafile (const Array2D< double > &data, const char *filename) |
template void | write_datafile (const Array2D< int > &data, const char *filename) |
template<typename T > | |
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. | |
template void | write_datafile (const Array2D< double > &data, const char *filename, const char *action) |
template void | write_datafile (const Array2D< int > &data, const char *filename, const char *action) |
template<typename T > | |
void | write_datafile (const std::vector< T > &data, const int &nrows, const int &ncols, const char *storage, const char *filename, const char *action) |
Write the contents of a vector of typename T to file filename in a matrix form. | |
template void | write_datafile (const std::vector< double > &data, const int &nrows, const int &ncols, const char *storage, const char *filename, const char *action) |
template void | write_datafile (const std::vector< int > &data, const int &nrows, const int &ncols, const char *storage, const char *filename, const char *action) |
template<typename T > | |
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. | |
template void | write_datafile_1d (const Array1D< double > &data, const char *filename) |
template void | write_datafile_1d (const Array1D< int > &data, const char *filename) |
Read/write capabilities from/to matrix or vector form arrays/files.
template void read_datafile | ( | Array2D< double > & | data, |
const char * | filename ) |
template void read_datafile | ( | Array2D< int > & | data, |
const char * | filename ) |
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.
template void read_datafile_1d | ( | Array1D< double > & | data, |
const char * | filename ) |
template void read_datafile_1d | ( | Array1D< int > & | data, |
const char * | filename ) |
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.
void read_datafileVS | ( | Array1D< Array1D< T > > & | data, |
const char * | filename ) |
template void read_datafileVS | ( | Array1D< double > & | data, |
const char * | filename ) |
template void read_datafileVS | ( | Array1D< int > & | data, |
const char * | filename ) |
void read_datafileVS | ( | Array1D< T > & | data, |
const char * | filename ) |
Read a datafile from filename in a vector form and store it in the 1d array data of typename T.
template void read_datafileVS | ( | Array2D< double > & | data, |
const char * | filename ) |
template void read_datafileVS | ( | Array2D< int > & | data, |
const char * | filename ) |
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.
template void read_datafileVS | ( | std::vector< double > & | data, |
int & | nrows, | ||
int & | ncols, | ||
const char * | filename ) |
template void read_datafileVS | ( | std::vector< int > & | data, |
int & | nrows, | ||
int & | ncols, | ||
const char * | filename ) |
void read_datafileVS | ( | std::vector< T > & | data, |
int & | nrows, | ||
int & | ncols, | ||
const char * | filename ) |
Read a datafile from filename in a matrix form and store it in a std::vector in column-major storage scheme.
template void write_datafile | ( | const Array2D< double > & | data, |
const char * | filename ) |
template void write_datafile | ( | const Array2D< double > & | data, |
const char * | filename, | ||
const char * | action ) |
template void write_datafile | ( | const Array2D< int > & | data, |
const char * | filename ) |
template void write_datafile | ( | const Array2D< int > & | data, |
const char * | filename, | ||
const char * | action ) |
void write_datafile | ( | const Array2D< T > & | data, |
const char * | filename ) |
Write the contents of a 2d array data of typename T to file filename in a matrix form.
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.
template void write_datafile | ( | const std::vector< double > & | data, |
const int & | nrows, | ||
const int & | ncols, | ||
const char * | storage, | ||
const char * | filename, | ||
const char * | action ) |
template void write_datafile | ( | const std::vector< int > & | data, |
const int & | nrows, | ||
const int & | ncols, | ||
const char * | storage, | ||
const char * | filename, | ||
const char * | action ) |
void write_datafile | ( | const std::vector< T > & | data, |
const int & | nrows, | ||
const int & | ncols, | ||
const char * | storage, | ||
const char * | filename, | ||
const char * | action ) |
Write the contents of a vector of typename T to file filename in a matrix form.
template void write_datafile_1d | ( | const Array1D< double > & | data, |
const char * | filename ) |
template void write_datafile_1d | ( | const Array1D< int > & | data, |
const char * | filename ) |
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.
template void write_datafile_size | ( | const Array2D< double > & | data, |
const char * | filename ) |
template void write_datafile_size | ( | const Array2D< int > & | data, |
const char * | filename ) |
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, followed by the contents of a 2d array data of typename T in a matrix form.