mlpack
1.0.12
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
16
#ifndef __MLPACK_CORE_DATA_SAVE_HPP
17
#define __MLPACK_CORE_DATA_SAVE_HPP
18
19
#include <
mlpack/core/util/log.hpp
>
20
#include <mlpack/core/arma_extend/arma_extend.hpp>
// Includes Armadillo.
21
#include <string>
22
23
namespace
mlpack
{
24
namespace
data {
25
55
template
<
typename
eT>
56
bool
Save
(
const
std::string& filename,
57
const
arma::Mat<eT>& matrix,
58
bool
fatal =
false
,
59
bool
transpose =
true
);
60
61
};
// namespace data
62
};
// namespace mlpack
63
64
// Include implementation.
65
#include "save_impl.hpp"
66
67
#endif
mlpack
Linear algebra utility functions, generally performed on matrices or vectors.
Definition:
load.hpp:23
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 by
1.8.9.1