ViennaCL - The Vienna Computing Library
1.5.1
|
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 | trim (char *buffer, long max_size) |
std::string | tolower (std::string &s) |
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) More... | |
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) More... | |
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) More... | |
A reader and writer for the matrix market format is implemented here.