MLPACK  1.0.10
load.hpp
Go to the documentation of this file.
1 
24 #ifndef __MLPACK_CORE_DATA_LOAD_HPP
25 #define __MLPACK_CORE_DATA_LOAD_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 
66 template<typename eT>
67 bool Load(const std::string& filename,
68  arma::Mat<eT>& matrix,
69  bool fatal = false,
70  bool transpose = true);
71 
72 }; // namespace data
73 }; // namespace mlpack
74 
75 // Include implementation.
76 #include "load_impl.hpp"
77 
78 #endif
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: load.hpp:31
bool Load(const std::string &filename, arma::Mat< eT > &matrix, bool fatal=false, bool transpose=true)
Loads a matrix from file, guessing the filetype from the extension.