SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | List of all members
EigenMatrixFromScirunAsciiFormatConverter Class Reference

#include <EigenMatrixFromScirunAsciiFormatConverter.h>

Public Types

typedef std::vector< int > Indices
 
typedef std::vector< double > Data
 
typedef boost::tuple< int, int,
int, Indices, Indices, Data
SparseData
 
typedef boost::tuple
< std::string, std::string,
std::string, std::string,
std::string, std::string > 
RawSparseData
 
typedef boost::tuple< int, int,
Data
DenseData
 
typedef boost::tuple
< std::string, std::string,
std::string > 
RawDenseData
 

Public Member Functions

 EigenMatrixFromScirunAsciiFormatConverter (const Utility::ProgressReporter *reporter=0)
 
Core::Datatypes::MatrixHandle make (const std::string &matFile)
 
Core::Datatypes::SparseRowMatrixHandle makeSparse (const std::string &matFile)
 
boost::optional< std::string > getMatrixContentsLine (const std::string &matStr)
 
std::string readFile (const std::string &filename)
 
Core::Datatypes::DenseMatrixHandle makeDense (const std::string &matFile)
 
Core::Datatypes::DenseColumnMatrixHandle makeColumn (const std::string &matFile)
 
boost::optional< RawDenseDataparseDenseMatrixString (const std::string &matString)
 
boost::optional< RawDenseDataparseColumnMatrixString (const std::string &matString)
 
DenseData convertRaw (const RawDenseData &data)
 
boost::optional< RawSparseDataparseSparseMatrixString (const std::string &matString)
 
SparseData convertRaw (const RawSparseData &data)
 

Member Typedef Documentation

typedef std::vector<double> Data
typedef boost::tuple<int, int, Data> DenseData
typedef std::vector<int> Indices
typedef boost::tuple<std::string,std::string,std::string> RawDenseData
typedef boost::tuple<std::string,std::string,std::string,std::string,std::string,std::string> RawSparseData
typedef boost::tuple<int, int, int, Indices, Indices, Data> SparseData

Constructor & Destructor Documentation

Member Function Documentation

boost::optional< std::string > getMatrixContentsLine ( const std::string &  matStr)
MatrixHandle make ( const std::string &  matFile)
Todo:
: no access to error(), need alternative for logging this exception
DenseColumnMatrixHandle makeColumn ( const std::string &  matFile)
DenseMatrixHandle makeDense ( const std::string &  matFile)
SparseRowMatrixHandle makeSparse ( const std::string &  matFile)
boost::optional< EigenMatrixFromScirunAsciiFormatConverter::RawDenseData > parseColumnMatrixString ( const std::string &  matString)
boost::optional< EigenMatrixFromScirunAsciiFormatConverter::RawDenseData > parseDenseMatrixString ( const std::string &  matString)
boost::optional< EigenMatrixFromScirunAsciiFormatConverter::RawSparseData > parseSparseMatrixString ( const std::string &  matString)
std::string readFile ( const std::string &  filename)

The documentation for this class was generated from the following files: