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

Routines for writing data to file. More...

Collaboration diagram for Writers:

Functions

template<typename Container , typename Stream >
void Morpheus::IO::write_matrix_market_stream (const Container &container, Stream &output)
 Writes a container to a stream in the MatrixMarket file format. More...
 
template<typename Container >
void Morpheus::IO::write_matrix_market_file (const Container &container, const std::string &filename)
 Writes a container to a file in the MatrixMarket file format. More...
 

Detailed Description

Routines for writing data to file.

Function Documentation

◆ write_matrix_market_file()

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

Writes a container to a file in the MatrixMarket file format.

Template Parameters
ContainerType of the container that holds the data
StreamThe type of the stream to write the data
Parameters
containerThe container that holds the data
filenameThe absolute path to the filename to write the data
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.

◆ write_matrix_market_stream()

template<typename Container , typename Stream >
void Morpheus::IO::write_matrix_market_stream ( const Container &  container,
Stream &  output 
)

Writes a container to a stream in the MatrixMarket file format.

Template Parameters
ContainerType of the container that holds the data
StreamThe type of the stream to write the data
Parameters
containerThe container that holds the data
outputThe output 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.