Morpheus 1.0.0
Dynamic matrix type and algorithms for sparse matrices
Loading...
Searching...
No Matches
Functions

Routines for reading data from file. More...

Collaboration diagram for Readers:

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...
 

Detailed Description

Routines for reading data from file.

Function Documentation

◆ read_matrix_market_file()

template<typename Container >
void Morpheus::IO::read_matrix_market_file ( Container &  container,
const std::string &  filename 
)

Reads a MatrixMarket file from file.

Template Parameters
ContainerType of the container to store the data
Parameters
containerThe container that will hold the data
filenameThe absolute path to the filename to read the data from
Note
The routine can accept only containers that satisfy the is_coo_matrix_format_container, is_dynamic_matrix_format_container, is_dense_matrix_format_container and is_dense_vector_format_container checks.
The routine can only accept containers that reside on Host i.e satisfy the has_host_memory_space check.

◆ read_matrix_market_stream()

template<typename Container , typename Stream >
void Morpheus::IO::read_matrix_market_stream ( Container &  container,
Stream &  input 
)

Reads a MatrixMarket file from a stream.

Template Parameters
ContainerType of the container to store the data
StreamType of the stream to read the data from
Parameters
containerThe container that will hold the data
inputThe input stream
Note
The routine can accept only containers that satisfy the is_coo_matrix_format_container, is_dynamic_matrix_format_container, is_dense_matrix_format_container and is_dense_vector_format_container checks.
The routine can only accept containers that reside on Host i.e satisfy the has_host_memory_space check.