14 #ifndef MLPACK_CORE_DATA_SAVE_HPP 15 #define MLPACK_CORE_DATA_SAVE_HPP 18 #include <mlpack/core/arma_extend/arma_extend.hpp> 63 bool Save(
const std::string& filename,
64 const arma::Mat<eT>& matrix,
65 const bool fatal =
false,
66 bool transpose =
true,
67 arma::file_type inputSaveType = arma::auto_detect);
95 bool Save(
const std::string& filename,
96 const arma::SpMat<eT>& matrix,
97 const bool fatal =
false,
98 bool transpose =
true);
126 bool Save(
const std::string& filename,
127 const std::string& name,
129 const bool fatal =
false,
130 format f = format::autodetect);
141 template<
typename eT>
142 bool Save(
const std::string& filename,
143 arma::Mat<eT>& matrix,
145 const bool fatal =
false);
156 template<
typename eT>
157 bool Save(
const std::vector<std::string>& files,
158 arma::Mat<eT>& matrix,
160 const bool fatal =
false);
165 bool SaveImage(
const std::string& filename,
166 arma::Mat<unsigned char>& image,
168 const bool fatal =
false);
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
bool SaveImage(const std::string &filename, arma::Mat< unsigned char > &image, ImageInfo &info, const bool fatal=false)
Helper function to save files.
Definition: save_image.cpp:130
format
Define the formats we can read through cereal.
Definition: format.hpp:20
bool Save(const std::string &filename, const arma::Mat< eT > &matrix, const bool fatal=false, bool transpose=true, arma::file_type inputSaveType=arma::auto_detect)
Saves a matrix to file, guessing the filetype from the extension.
Definition: save_impl.hpp:47