PLearn 0.1
Namespaces | Defines | Functions
MatIO.cc File Reference
#include "MatIO.h"
#include <plearn/base/tostring.h>
#include "fileutils.h"
Include dependency graph for MatIO.cc:

Go to the source code of this file.

Namespaces

namespace  PLearn
 

< for swap


Defines

#define convert_UCIMLDB_BUF_LEN   10000
#define convert_STATLOG_BUF_LEN   10000

Functions

void PLearn::loadMat (const string &filename, TMat< float > &mat)
 Tries to guess the format...
void PLearn::loadMat (const string &file_name, TMat< double > &mat)
void PLearn::loadVec (const string &file_name, TVec< float > &vec)
void PLearn::loadVec (const string &file_name, TVec< double > &vec)
void PLearn::savePVec (const string &filename, const TVec< float > &vec)
 Native PLearn binary format (.pmat)
void PLearn::savePVec (const string &filename, const TVec< double > &vec)
void PLearn::loadPVec (const string &filename, TVec< float > &vec)
void PLearn::loadPVec (const string &filename, TVec< double > &vec)
void PLearn::savePMat (const string &filename, const TMat< float > &mat)
void PLearn::savePMat (const string &filename, const TMat< double > &mat)
void PLearn::savePMatFieldnames (const string &pmatfilename, const TVec< string > &fieldnames)
 Will save the fieldnames in corresponding pmatfilename.metadata/fieldnames (creating the metadata directory if necessary)
void PLearn::loadPMat (const string &filename, TMat< float > &mat)
void PLearn::loadPMat (const string &filename, TMat< double > &mat)
void PLearn::saveGnuplot (const string &filename, const Vec &vec)
void PLearn::saveGnuplot (const string &filename, const Mat &mat)
void PLearn::loadGnuplot (const string &filename, Mat &mat)
 Format readable by gnuplot.
void PLearn::matlabSave (const PPath &dir, const string &plot_title, const Vec &data, const Vec &add_col, const Vec &bounds, string legend, bool save_plot)
void PLearn::matlabSave (const PPath &dir, const string &plot_title, const Vec &xValues, const Vec &yValues, const Vec &add_col, const Vec &bounds, string legend, bool save_plot)
void PLearn::matlabSave (const PPath &dir, const string &plot_title, const Mat &data, const Vec &add_col, const Vec &bounds, TVec< string > legend=TVec< string >(), bool save_plot=true)
 Simply calls the coming matlabSave function with an empty xValues Vec. See below.
void PLearn::matlabSave (const PPath &dir, const string &plot_title, const Vec &xValues, const Mat &yValues, const Vec &add_col, const Vec &bounds, TVec< string > legend, bool save_plot)
void PLearn::saveAsciiWithoutSize (const string &filename, const Vec &vec)
void PLearn::loadAsciiWithoutSize (const string &filename, const Vec &vec)
 Reads and writes an ascii file without the size header (assuming that the size(length() and width()) is set)
void PLearn::saveAsciiWithoutSize (const string &filename, const Mat &mat)
void PLearn::loadAsciiWithoutSize (const string &filename, const Mat &mat)
void PLearn::saveSNMat (const string &filename, const Mat &mat)
Mat PLearn::loadSNMat (const string &filename)
 SN Format.
void PLearn::saveSNVec (const string &filename, const Vec &vec)
Vec PLearn::loadSNVec (const string &filename)
Mat PLearn::loadADMat (const string &filename)
 Native AD format.
Vec PLearn::loadADVec (const string &filename)
static int PLearn::compare_string_pointers (const void *ts1, const void *ts2)
Mat PLearn::loadUCIMLDB (const string &filename, char ****to_symbols, int **to_n_symbols, TVec< int > *the_max_in_col, TVec< string > *header_columns)
Mat PLearn::loadSTATLOG (const string &filename, char ****to_symbols, int **to_n_symbols)
void PLearn::loadJPEGrgb (const string &jpeg_filename, Mat &rgbmat, int &row_size, int scale)
void PLearn::parseSizeFromRemainingLines (const PPath &filename, PStream &in, bool &could_be_old_amat, int &length, int &width)

Define Documentation

#define convert_STATLOG_BUF_LEN   10000

Referenced by PLearn::loadSTATLOG().

#define convert_UCIMLDB_BUF_LEN   10000

Referenced by PLearn::loadUCIMLDB().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines