14 #ifndef MLPACK_CORE_DATA_LOAD_HPP 15 #define MLPACK_CORE_DATA_LOAD_HPP 63 arma::Mat<eT>& matrix,
64 const bool fatal =
false,
65 const bool transpose =
true);
68 extern template bool Load<size_t>(
const std::string&, arma::Mat<size_t>&,
const bool,
const bool);
69 extern template bool Load<float>(
const std::string&, arma::Mat<float>&,
const bool,
const bool);
70 extern template bool Load<double>(
const std::string&, arma::Mat<double>&,
const bool,
const bool);
73 extern template bool Load<unsigned long long>(
const std::string&, arma::Mat<unsigned long long>&,
const bool,
const bool);
103 template<
typename eT>
104 bool Load(
const std::string& filename,
106 const bool fatal =
false);
135 template<
typename eT>
136 bool Load(
const std::string& filename,
137 arma::Row<eT>& rowvec,
138 const bool fatal =
false);
172 template<
typename eT,
typename PolicyType>
173 bool Load(
const std::string& filename,
174 arma::Mat<eT>& matrix,
175 DatasetMapper<PolicyType>& info,
176 const bool fatal =
false,
177 const bool transpose =
true);
180 DatasetMapper<IncrementPolicy>&,
181 const bool,
const bool);
184 DatasetMapper<IncrementPolicy>&,
185 const bool,
const bool);
188 DatasetMapper<IncrementPolicy>&,
189 const bool,
const bool);
192 DatasetMapper<IncrementPolicy>&,
193 const bool,
const bool);
196 DatasetMapper<IncrementPolicy>&,
197 const bool,
const bool);
225 bool Load(
const std::string& filename,
226 const std::string& name,
228 const bool fatal =
false,
235 #include "load_model_impl.hpp" 237 #include "load_vec_impl.hpp" template bool Load< size_t >(const std::string &, arma::Mat< size_t > &, const bool, const bool)
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
template bool Load< double >(const std::string &, arma::Mat< double > &, const bool, const bool)
template bool Load< size_t, IncrementPolicy >(const std::string &, arma::Mat< size_t > &, DatasetMapper< IncrementPolicy > &, const bool, const bool)
template bool Load< double, IncrementPolicy >(const std::string &, arma::Mat< double > &, DatasetMapper< IncrementPolicy > &, const bool, const bool)
template bool Load< int, IncrementPolicy >(const std::string &, arma::Mat< int > &, DatasetMapper< IncrementPolicy > &, const bool, const bool)
template bool Load< unsigned long long, IncrementPolicy >(const std::string &, arma::Mat< unsigned long long > &, DatasetMapper< IncrementPolicy > &, const bool, const bool)
template bool Load< unsigned long long >(const std::string &, arma::Mat< unsigned long long > &, const bool, const bool)
template bool Load< int >(const std::string &, arma::Mat< int > &, const bool, const bool)
bool Load(const std::string &filename, arma::Mat< eT > &matrix, const bool fatal=false, const bool transpose=true)
Loads a matrix from file, guessing the filetype from the extension.
format
Define the formats we can read through boost::serialization.
test cpp RESULT_VARIABLE MEX_RESULT_TRASH OUTPUT_VARIABLE MEX_OUTPUT ERROR_VARIABLE MEX_ERROR_TRASH string(REGEX MATCH"Warning: You are using"MEX_WARNING"${MEX_OUTPUT}") if(MEX_WARNING) string(REGEX REPLACE".*using [a-zA-Z]* version \"([0-9.]*)[^\"]*\".*""\\1"OTHER_COMPILER_VERSION"$
template bool Load< float >(const std::string &, arma::Mat< float > &, const bool, const bool)
template bool Load< float, IncrementPolicy >(const std::string &, arma::Mat< float > &, DatasetMapper< IncrementPolicy > &, const bool, const bool)