types.hpp
Go to the documentation of this file.
1 
19 #ifndef MLPACK_CORE_DATA_TYPES_HPP
20 #define MLPACK_CORE_DATA_TYPES_HPP
21 
22 #include <iostream>
23 #include <limits>
24 
25 namespace mlpack {
26 namespace data {
27 
28 enum struct FileType
29 {
31  AutoDetect,
32  RawASCII,
33  ArmaASCII,
34  CSVASCII,
35  RawBinary,
36  ArmaBinary,
37  PGMBinary,
38  PPMBinary,
39  HDF5Binary,
40  CoordASCII
41 };
42 
49 inline arma::file_type ToArmaFileType(const FileType& type);
50 
51 } // namespace data
52 } // namespace mlpack
53 
54 #include "types_impl.hpp"
55 
56 #endif
57 
Portable Pixel Map (colour image), used by the field and cube classes.
HDF5: open binary format, not specific to Armadillo, which can store arbitrary data.
Armadillo text format, with a header specifying matrix type and size.
Linear algebra utility functions, generally performed on matrices or vectors.
comma separated values (CSV), without a header
constexpr auto data(Container const &container) noexcept -> decltype(container.data())
Definition: iterator.hpp:79
arma::file_type ToArmaFileType(const FileType &type)
This function is used to convert mlpack file types to their respective Armadillo file types...
Armadillo binary format (machine dependent), with a header specifying matrix type and size...
raw text (ASCII), without a header
Portable Grey Map (greyscale image)
simple co-ordinate format for sparse matrices (indices start at zero)
raw binary format (machine dependent), without a header
attempt to automatically detect the file type