23 #include <cusp/detail/config.h>
24 #include <thrust/tuple.h>
68 template <
typename Matrix>
69 thrust::tuple<typename Matrix::index_type, typename Matrix::index_type>
103 template <
typename Matrix,
typename Stream>
104 thrust::tuple<typename Matrix::index_type, typename Matrix::index_type>
145 template <
typename Matrix>
147 const thrust::tuple<typename Matrix::index_type,typename Matrix::index_type>& t,
148 const std::string& filename);
185 template <
typename Matrix,
typename Stream>
187 const thrust::tuple<typename Matrix::index_type,typename Matrix::index_type>& t,
196 #include <cusp/io/detail/dimacs.inl>
thrust::tuple< typename Matrix::index_type, typename Matrix::index_type > read_dimacs_stream(Matrix &mtx, Stream &input)
Read Dimacs data from a stream.
void write_dimacs_file(const Matrix &mtx, const thrust::tuple< typename Matrix::index_type, typename Matrix::index_type > &t, const std::string &filename)
Write a Dimacs file.
void write_dimacs_stream(const Matrix &mtx, const thrust::tuple< typename Matrix::index_type, typename Matrix::index_type > &t, Stream &output)
Write Dimacs data to a stream.
thrust::tuple< typename Matrix::index_type, typename Matrix::index_type > read_dimacs_file(Matrix &mtx, const std::string &filename)
Read a Dimacs file.