Morpheus 1.0.0
Dynamic matrix type and algorithms for sparse matrices
|
Routines for reading data from file. More...
Functions | |
template<typename Container , typename Stream > | |
void | Morpheus::IO::read_matrix_market_stream (Container &container, Stream &input) |
Reads a MatrixMarket file from a stream. More... | |
template<typename Container > | |
void | Morpheus::IO::read_matrix_market_file (Container &container, const std::string &filename) |
Reads a MatrixMarket file from file. More... | |
Routines for reading data from file.
void Morpheus::IO::read_matrix_market_file | ( | Container & | container, |
const std::string & | filename | ||
) |
Reads a MatrixMarket file from file.
Container | Type of the container to store the data |
container | The container that will hold the data |
filename | The absolute path to the filename to read the data from |
is_coo_matrix_format_container
, is_dynamic_matrix_format_container
, is_dense_matrix_format_container
and is_dense_vector_format_container
checks.has_host_memory_space
check. void Morpheus::IO::read_matrix_market_stream | ( | Container & | container, |
Stream & | input | ||
) |
Reads a MatrixMarket file from a stream.
Container | Type of the container to store the data |
Stream | Type of the stream to read the data from |
container | The container that will hold the data |
input | The input stream |
is_coo_matrix_format_container
, is_dynamic_matrix_format_container
, is_dense_matrix_format_container
and is_dense_vector_format_container
checks.has_host_memory_space
check.