|
Skylark (Sketching Library)
0.1
|
#include <boost/mpi.hpp>#include <sstream>#include <cstdlib>#include <string>#include <elemental.hpp>#include "../base/sparse_matrix.hpp"#include "options.hpp"#include <H5Cpp.h>

Go to the source code of this file.
Typedefs | |
| typedef elem::DistMatrix < double, elem::CIRC, elem::CIRC > | DistCircMatrixType |
| typedef skylark::base::sparse_matrix_t < double > | sparse_matrix_t |
| typedef elem::Matrix< double > | LocalMatrixType |
Functions | |
| template<typename T > | |
| void | read_libsvm (const boost::mpi::communicator &comm, std::string fName, elem::Matrix< T > &Xlocal, elem::Matrix< T > &Ylocal, int min_d=0, int blocksize=10000) |
| template<typename T > | |
| void | read_libsvm (const boost::mpi::communicator &comm, std::string fName, skylark::base::sparse_matrix_t< T > &X, elem::Matrix< T > &Y, int min_d=0) |
| template<class InputType , class LabelType > | |
| void | read (const boost::mpi::communicator &comm, int fileformat, std::string filename, InputType &X, LabelType &Y, int d=0) |
| void | read_model_file (std::string fName, elem::Matrix< double > &W) |
| std::string | read_header (const boost::mpi::communicator &comm, std::string fName) |
| typedef elem::DistMatrix<double, elem::CIRC, elem::CIRC> DistCircMatrixType |
| typedef elem::Matrix<double> LocalMatrixType |
| typedef skylark::base::sparse_matrix_t<double> sparse_matrix_t |
| void read | ( | const boost::mpi::communicator & | comm, |
| int | fileformat, | ||
| std::string | filename, | ||
| InputType & | X, | ||
| LabelType & | Y, | ||
| int | d = 0 |
||
| ) |
Definition at line 878 of file io.hpp.
References HDF5_DENSE, HDF5_SPARSE, LIBSVM_DENSE, LIBSVM_SPARSE, and read_libsvm().
Referenced by run().

| std::string read_header | ( | const boost::mpi::communicator & | comm, |
| std::string | fName | ||
| ) |
| void read_libsvm | ( | const boost::mpi::communicator & | comm, |
| std::string | fName, | ||
| elem::Matrix< T > & | Xlocal, | ||
| elem::Matrix< T > & | Ylocal, | ||
| int | min_d = 0, |
||
| int | blocksize = 10000 |
||
| ) |
| void read_libsvm | ( | const boost::mpi::communicator & | comm, |
| std::string | fName, | ||
| skylark::base::sparse_matrix_t< T > & | X, | ||
| elem::Matrix< T > & | Y, | ||
| int | min_d = 0 |
||
| ) |
Definition at line 676 of file io.hpp.
References skylark::base::sparse_matrix_t< ValueType >::attach(), max(), and t.

| void read_model_file | ( | std::string | fName, |
| elem::Matrix< double > & | W | ||
| ) |
1.7.6.1