33 inline static void conv_to_hex(
char* out,
const u8 x);
35 inline static std::string
gen_tmp_name(
const std::string& x);
37 inline static bool safe_rename(
const std::string& old_name,
const std::string& new_name);
43 template<
typename eT>
inline static bool save_raw_ascii (
const Mat<eT>& x,
const std::string& final_name);
44 template<
typename eT>
inline static bool save_raw_binary (
const Mat<eT>& x,
const std::string& final_name);
45 template<
typename eT>
inline static bool save_arma_ascii (
const Mat<eT>& x,
const std::string& final_name);
46 template<
typename eT>
inline static bool save_csv_ascii (
const Mat<eT>& x,
const std::string& final_name);
48 template<
typename eT>
inline static bool save_pgm_binary (
const Mat<eT>& x,
const std::string& final_name);
49 template<
typename T>
inline static bool save_pgm_binary (
const Mat< std::complex<T> >& x,
const std::string& final_name);
57 template<
typename T>
inline static bool save_pgm_binary (
const Mat< std::complex<T> >& x, std::ostream& f);
63 template<
typename eT>
inline static bool load_raw_ascii (
Mat<eT>& x,
const std::string& name, std::string& err_msg);
64 template<
typename eT>
inline static bool load_raw_binary (
Mat<eT>& x,
const std::string& name, std::string& err_msg);
65 template<
typename eT>
inline static bool load_arma_ascii (
Mat<eT>& x,
const std::string& name, std::string& err_msg);
66 template<
typename eT>
inline static bool load_csv_ascii (
Mat<eT>& x,
const std::string& name, std::string& err_msg);
67 template<
typename eT>
inline static bool load_arma_binary(
Mat<eT>& x,
const std::string& name, std::string& err_msg);
68 template<
typename eT>
inline static bool load_pgm_binary (
Mat<eT>& x,
const std::string& name, std::string& err_msg);
69 template<
typename T>
inline static bool load_pgm_binary (
Mat< std::complex<T> >& x,
const std::string& name, std::string& err_msg);
70 template<
typename eT>
inline static bool load_auto_detect(
Mat<eT>& x,
const std::string& name, std::string& err_msg);
72 template<
typename eT>
inline static bool load_raw_ascii (
Mat<eT>& x, std::istream& f, std::string& err_msg);
73 template<
typename eT>
inline static bool load_raw_binary (
Mat<eT>& x, std::istream& f, std::string& err_msg);
74 template<
typename eT>
inline static bool load_arma_ascii (
Mat<eT>& x, std::istream& f, std::string& err_msg);
75 template<
typename eT>
inline static bool load_csv_ascii (
Mat<eT>& x, std::istream& f, std::string& err_msg);
77 template<
typename eT>
inline static bool load_pgm_binary (
Mat<eT>& x, std::istream& is, std::string& err_msg);
78 template<
typename T>
inline static bool load_pgm_binary (
Mat< std::complex<T> >& x, std::istream& is, std::string& err_msg);
101 template<
typename eT>
inline static bool load_raw_ascii (
Cube<eT>& x,
const std::string& name, std::string& err_msg);
102 template<
typename eT>
inline static bool load_raw_binary (
Cube<eT>& x,
const std::string& name, std::string& err_msg);
103 template<
typename eT>
inline static bool load_arma_ascii (
Cube<eT>& x,
const std::string& name, std::string& err_msg);
104 template<
typename eT>
inline static bool load_arma_binary(
Cube<eT>& x,
const std::string& name, std::string& err_msg);
105 template<
typename eT>
inline static bool load_auto_detect(
Cube<eT>& x,
const std::string& name, std::string& err_msg);
107 template<
typename eT>
inline static bool load_raw_ascii (
Cube<eT>& x, std::istream& f, std::string& err_msg);
140 template<
typename T1>
inline static bool load_ppm_binary(
Cube<T1>& x,
const std::string& final_name, std::string& err_msg);
150 template<
typename T1>
inline static bool load_ppm_binary(
field<T1>& x,
const std::string& final_name, std::string& err_msg);
static bool save_raw_binary(const Mat< eT > &x, const std::string &final_name)
Save a matrix as raw binary (no header)
static bool save_pgm_binary(const Mat< eT > &x, const std::string &final_name)
Save a matrix as a PGM greyscale image.
static void conv_to_hex(char *out, const u8 x)
static bool load_arma_binary(Mat< eT > &x, const std::string &name, std::string &err_msg)
static bool load_pgm_binary(Mat< eT > &x, const std::string &name, std::string &err_msg)
Load a PGM greyscale image as a matrix.
static char conv_to_hex_char(const u8 x)
static bool save_csv_ascii(const Mat< eT > &x, const std::string &final_name)
Save a matrix in CSV text format (human readable)
static file_type guess_file_type(std::istream &f)
static bool load_std_string(field< std::string > &x, const std::string &name, std::string &err_msg)
static bool save_ppm_binary(const Cube< T1 > &x, const std::string &final_name)
static std::string gen_bin_header(const Mat< eT > &x)
static bool load_ppm_binary(Cube< T1 > &x, const std::string &final_name, std::string &err_msg)
static bool load_raw_binary(Mat< eT > &x, const std::string &name, std::string &err_msg)
static bool load_auto_detect(Mat< eT > &x, const std::string &name, std::string &err_msg)
Try to load a matrix by automatically determining its type.
static std::string gen_tmp_name(const std::string &x)
static bool save_raw_ascii(const Mat< eT > &x, const std::string &final_name)
static bool load_raw_ascii(Mat< eT > &x, const std::string &name, std::string &err_msg)
static std::string gen_txt_header(const Mat< eT > &x)
static bool save_std_string(const field< std::string > &x, const std::string &name)
static bool safe_rename(const std::string &old_name, const std::string &new_name)
static bool load_arma_ascii(Mat< eT > &x, const std::string &name, std::string &err_msg)
static bool save_arma_ascii(const Mat< eT > &x, const std::string &final_name)
static bool load_csv_ascii(Mat< eT > &x, const std::string &name, std::string &err_msg)
Load a matrix in CSV text format (human readable)
static void pnm_skip_comments(std::istream &f)
class for saving and loading matrices and fields
static bool save_arma_binary(const Mat< eT > &x, const std::string &final_name)