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 | |
| viennacl | |
| Main namespace in ViennaCL. Holds all the basic types such as vector, matrix, etc. and defines operations upon them. | |
| viennacl::io | |
| Provides basic input-output functionality. | |
| viennacl::io::detail | |
| Implementation details for IO functionality. Usually not of interest for a library user. | |
Functions | |
| void | viennacl::io::detail::trim (char *buffer, long max_size) |
| std::string | viennacl::io::detail::tolower (std::string &s) |
| template<typename MatrixT > | |
| long | viennacl::io::read_matrix_market_file_impl (MatrixT &mat, const char *file, long index_base) |
| Reads a sparse or dense matrix from a file (MatrixMarket format) More... | |
| template<typename MatrixT > | |
| long | viennacl::io::read_matrix_market_file (MatrixT &mat, const char *file, long index_base=1) |
| Reads a sparse matrix from a file (MatrixMarket format) More... | |
| template<typename MatrixT > | |
| long | viennacl::io::read_matrix_market_file (MatrixT &mat, const std::string &file, long index_base=1) |
| template<typename ScalarT > | |
| long | viennacl::io::read_matrix_market_file (std::vector< std::map< unsigned int, ScalarT > > &mat, const char *file, long index_base=1) |
| template<typename ScalarT > | |
| long | viennacl::io::read_matrix_market_file (std::vector< std::map< unsigned int, ScalarT > > &mat, const std::string &file, long index_base=1) |
| template<typename MatrixT > | |
| void | viennacl::io::write_matrix_market_file_impl (MatrixT const &mat, const char *file, long index_base) |
| template<typename ScalarT > | |
| void | viennacl::io::write_matrix_market_file (std::vector< std::map< unsigned int, ScalarT > > const &mat, const char *file, long index_base=1) |
| template<typename ScalarT > | |
| void | viennacl::io::write_matrix_market_file (std::vector< std::map< unsigned int, ScalarT > > const &mat, const std::string &file, long index_base=1) |
| template<typename MatrixT > | |
| void | viennacl::io::write_matrix_market_file (MatrixT const &mat, const std::string &file, long index_base=1) |
| Writes a sparse matrix to a file (MatrixMarket format) More... | |
A reader and writer for the matrix market format is implemented here.
Definition in file matrix_market.hpp.