Namespaces | Functions

/data/development/ViennaCL/dev/viennacl/io/matrix_market.hpp File Reference

A reader and writer for the matrix market format is implemented here. More...

#include <algorithm>
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <map>
#include <cctype>
#include "viennacl/tools/adapter.hpp"
#include "viennacl/traits/size.hpp"
#include "viennacl/traits/fill.hpp"

Go to the source code of this file.

Namespaces

namespace  viennacl
namespace  viennacl::io

Functions

template<typename MatrixType >
long read_matrix_market_file_impl (MatrixType &mat, const char *file, long index_base)
 Reads a sparse or dense matrix from a file (MatrixMarket format).
template<typename MatrixType >
long read_matrix_market_file (MatrixType &mat, const char *file, long index_base=1)
 Reads a sparse matrix from a file (MatrixMarket format).
template<typename MatrixType >
long read_matrix_market_file (MatrixType &mat, const std::string &file, long index_base=1)
template<typename ScalarType >
long read_matrix_market_file (std::vector< std::map< unsigned int, ScalarType > > &mat, const char *file, long index_base=1)
template<typename ScalarType >
long read_matrix_market_file (std::vector< std::map< unsigned int, ScalarType > > &mat, const std::string &file, long index_base=1)
template<typename MatrixType >
void write_matrix_market_file_impl (MatrixType const &mat, const char *file, long index_base)
template<typename ScalarType >
void write_matrix_market_file (std::vector< std::map< unsigned int, ScalarType > > const &mat, const char *file, long index_base=1)
template<typename ScalarType >
void write_matrix_market_file (std::vector< std::map< unsigned int, ScalarType > > const &mat, const std::string &file, long index_base=1)
template<typename MatrixType >
void write_matrix_market_file (MatrixType const &mat, const std::string &file, long index_base=1)
 Writes a sparse matrix to a file (MatrixMarket format).

Detailed Description

A reader and writer for the matrix market format is implemented here.