29 #ifndef ALGORITHMS_DATAIO_EIGENMATRIXFROMSCIRUNASCIIFORMATCONVERTER_H
30 #define ALGORITHMS_DATAIO_EIGENMATRIXFROMSCIRUNASCIIFORMATCONVERTER_H
34 #include <boost/optional.hpp>
35 #include <boost/tuple/tuple.hpp>
42 namespace Algorithms {
55 boost::optional<std::string> getMatrixContentsLine(
const std::string& matStr);
57 std::string readFile(
const std::string& filename);
63 typedef std::vector<double>
Data;
64 typedef boost::tuple<int, int, int, Indices, Indices, Data>
SparseData;
65 typedef boost::tuple<std::string,std::string,std::string,std::string,std::string,std::string>
RawSparseData;
67 typedef boost::tuple<std::string,std::string,std::string>
RawDenseData;
69 boost::optional<RawDenseData> parseDenseMatrixString(
const std::string& matString);
70 boost::optional<RawDenseData> parseColumnMatrixString(
const std::string& matString);
72 boost::optional<RawSparseData> parseSparseMatrixString(
const std::string& matString);
boost::shared_ptr< Matrix > MatrixHandle
Definition: MatrixFwd.h:44
#define SCISHARE
Definition: share.h:39
boost::shared_ptr< SparseRowMatrix > SparseRowMatrixHandle
Definition: MatrixFwd.h:68
Core::Datatypes::DenseMatrixHandle makeDense(const Core::Datatypes::SparseRowMatrix &sparse)
Definition: MatrixTestUtilities.h:128
dictionary data
Definition: eabLatVolData.py:11
boost::shared_ptr< DenseColumnMatrix > DenseColumnMatrixHandle
Definition: MatrixFwd.h:60
boost::shared_ptr< DenseMatrix > DenseMatrixHandle
Definition: MatrixFwd.h:52
Definition: ProgressReporter.h:54