MLPACK
1.0.10
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
mlpack
core
data
save.hpp
Go to the documentation of this file.
1
24
#ifndef __MLPACK_CORE_DATA_SAVE_HPP
25
#define __MLPACK_CORE_DATA_SAVE_HPP
26
27
#include <
mlpack/core/util/log.hpp
>
28
#include <mlpack/core/arma_extend/arma_extend.hpp>
// Includes Armadillo.
29
#include <string>
30
31
namespace
mlpack {
32
namespace
data {
33
63
template
<
typename
eT>
64
bool
Save
(
const
std::string& filename,
65
const
arma::Mat<eT>& matrix,
66
bool
fatal =
false
,
67
bool
transpose =
true
);
68
69
};
// namespace data
70
};
// namespace mlpack
71
72
// Include implementation.
73
#include "save_impl.hpp"
74
75
#endif
mlpack::data::Save
bool Save(const std::string &filename, const arma::Mat< eT > &matrix, bool fatal=false, bool transpose=true)
Saves a matrix to file, guessing the filetype from the extension.
log.hpp
Generated on Tue Sep 9 2014 13:55:17 for MLPACK by
1.8.7