$search
Classes | |
class | diskio |
class for saving and loading matrices and fields More... | |
Enumerations | |
enum | file_type { file_type_unknown, auto_detect, raw_ascii, arma_ascii, csv_ascii, raw_binary, arma_binary, pgm_binary, ppm_binary } |
Functions | |
static void | diskio::conv_to_hex (char *out, const u8 x) |
static char | diskio::conv_to_hex_char (const u8 x) |
template<typename eT > | |
static std::string | diskio::gen_bin_header (const Cube< eT > &x) |
template<typename eT > | |
static std::string | diskio::gen_bin_header (const Mat< eT > &x) |
static std::string | diskio::gen_tmp_name (const std::string &x) |
template<typename eT > | |
static std::string | diskio::gen_txt_header (const Cube< eT > &x) |
template<typename eT > | |
static std::string | diskio::gen_txt_header (const Mat< eT > &x) |
static file_type | diskio::guess_file_type (std::istream &f) |
template<typename eT > | |
static bool | diskio::load_arma_ascii (Cube< eT > &x, std::istream &f, std::string &err_msg) |
template<typename eT > | |
static bool | diskio::load_arma_ascii (Cube< eT > &x, const std::string &name, std::string &err_msg) |
template<typename eT > | |
static bool | diskio::load_arma_ascii (Mat< eT > &x, std::istream &f, std::string &err_msg) |
template<typename eT > | |
static bool | diskio::load_arma_ascii (Mat< eT > &x, const std::string &name, std::string &err_msg) |
template<typename T1 > | |
static bool | diskio::load_arma_binary (field< T1 > &x, std::istream &f, std::string &err_msg) |
template<typename T1 > | |
static bool | diskio::load_arma_binary (field< T1 > &x, const std::string &name, std::string &err_msg) |
template<typename eT > | |
static bool | diskio::load_arma_binary (Cube< eT > &x, std::istream &f, std::string &err_msg) |
template<typename eT > | |
static bool | diskio::load_arma_binary (Cube< eT > &x, const std::string &name, std::string &err_msg) |
template<typename eT > | |
static bool | diskio::load_arma_binary (Mat< eT > &x, std::istream &f, std::string &err_msg) |
template<typename eT > | |
static bool | diskio::load_arma_binary (Mat< eT > &x, const std::string &name, std::string &err_msg) |
template<typename T1 > | |
static bool | diskio::load_auto_detect (field< T1 > &x, std::istream &f, std::string &err_msg) |
Try to load a field by automatically determining its type. | |
template<typename T1 > | |
static bool | diskio::load_auto_detect (field< T1 > &x, const std::string &name, std::string &err_msg) |
Try to load a field by automatically determining its type. | |
template<typename eT > | |
static bool | diskio::load_auto_detect (Cube< eT > &x, std::istream &f, std::string &err_msg) |
Try to load a cube by automatically determining its type. | |
template<typename eT > | |
static bool | diskio::load_auto_detect (Cube< eT > &x, const std::string &name, std::string &err_msg) |
Try to load a cube by automatically determining its type. | |
template<typename eT > | |
static bool | diskio::load_auto_detect (Mat< eT > &x, std::istream &f, std::string &err_msg) |
Try to load a matrix by automatically determining its type. | |
template<typename eT > | |
static bool | diskio::load_auto_detect (Mat< eT > &x, const std::string &name, std::string &err_msg) |
Try to load a matrix by automatically determining its type. | |
template<typename eT > | |
static bool | diskio::load_csv_ascii (Mat< eT > &x, std::istream &f, std::string &err_msg) |
Load a matrix in CSV text format (human readable). | |
template<typename eT > | |
static bool | diskio::load_csv_ascii (Mat< eT > &x, const std::string &name, std::string &err_msg) |
Load a matrix in CSV text format (human readable). | |
template<typename T > | |
static bool | diskio::load_pgm_binary (Mat< std::complex< T > > &x, std::istream &is, std::string &err_msg) |
Load a PGM greyscale image as a matrix. | |
template<typename T > | |
static bool | diskio::load_pgm_binary (Mat< std::complex< T > > &x, const std::string &name, std::string &err_msg) |
Load a PGM greyscale image as a matrix. | |
template<typename eT > | |
static bool | diskio::load_pgm_binary (Mat< eT > &x, std::istream &is, std::string &err_msg) |
Load a PGM greyscale image as a matrix. | |
template<typename eT > | |
static bool | diskio::load_pgm_binary (Mat< eT > &x, const std::string &name, std::string &err_msg) |
Load a PGM greyscale image as a matrix. | |
template<typename T1 > | |
static bool | diskio::load_ppm_binary (field< T1 > &x, std::istream &f, std::string &err_msg) |
template<typename T1 > | |
static bool | diskio::load_ppm_binary (field< T1 > &x, const std::string &final_name, std::string &err_msg) |
template<typename eT > | |
bool | diskio::load_ppm_binary (Cube< eT > &x, std::istream &f, std::string &err_msg) |
template<typename eT > | |
bool | diskio::load_ppm_binary (Cube< eT > &x, const std::string &name, std::string &err_msg) |
template<typename eT > | |
static bool | diskio::load_raw_ascii (Cube< eT > &x, std::istream &f, std::string &err_msg) |
template<typename eT > | |
static bool | diskio::load_raw_ascii (Cube< eT > &x, const std::string &name, std::string &err_msg) |
template<typename eT > | |
static bool | diskio::load_raw_ascii (Mat< eT > &x, std::istream &f, std::string &err_msg) |
template<typename eT > | |
static bool | diskio::load_raw_ascii (Mat< eT > &x, const std::string &name, std::string &err_msg) |
template<typename eT > | |
static bool | diskio::load_raw_binary (Cube< eT > &x, std::istream &f, std::string &err_msg) |
template<typename eT > | |
static bool | diskio::load_raw_binary (Cube< eT > &x, const std::string &name, std::string &err_msg) |
template<typename eT > | |
static bool | diskio::load_raw_binary (Mat< eT > &x, std::istream &f, std::string &err_msg) |
template<typename eT > | |
static bool | diskio::load_raw_binary (Mat< eT > &x, const std::string &name, std::string &err_msg) |
static bool | diskio::load_std_string (field< std::string > &x, std::istream &f, std::string &err_msg) |
static bool | diskio::load_std_string (field< std::string > &x, const std::string &name, std::string &err_msg) |
static void | diskio::pnm_skip_comments (std::istream &f) |
static bool | diskio::safe_rename (const std::string &old_name, const std::string &new_name) |
template<typename eT > | |
static bool | diskio::save_arma_ascii (const Cube< eT > &x, std::ostream &f) |
template<typename eT > | |
static bool | diskio::save_arma_ascii (const Cube< eT > &x, const std::string &name) |
template<typename eT > | |
static bool | diskio::save_arma_ascii (const Mat< eT > &x, std::ostream &f) |
template<typename eT > | |
static bool | diskio::save_arma_ascii (const Mat< eT > &x, const std::string &final_name) |
template<typename T1 > | |
static bool | diskio::save_arma_binary (const field< T1 > &x, std::ostream &f) |
template<typename T1 > | |
static bool | diskio::save_arma_binary (const field< T1 > &x, const std::string &name) |
template<typename eT > | |
static bool | diskio::save_arma_binary (const Cube< eT > &x, std::ostream &f) |
template<typename eT > | |
static bool | diskio::save_arma_binary (const Cube< eT > &x, const std::string &name) |
template<typename eT > | |
static bool | diskio::save_arma_binary (const Mat< eT > &x, std::ostream &f) |
template<typename eT > | |
static bool | diskio::save_arma_binary (const Mat< eT > &x, const std::string &final_name) |
template<typename eT > | |
static bool | diskio::save_csv_ascii (const Mat< eT > &x, std::ostream &f) |
Save a matrix in CSV text format (human readable). | |
template<typename eT > | |
static bool | diskio::save_csv_ascii (const Mat< eT > &x, const std::string &final_name) |
Save a matrix in CSV text format (human readable). | |
template<typename T > | |
static bool | diskio::save_pgm_binary (const Mat< std::complex< T > > &x, std::ostream &f) |
Save a matrix as a PGM greyscale image. | |
template<typename T > | |
static bool | diskio::save_pgm_binary (const Mat< std::complex< T > > &x, const std::string &final_name) |
Save a matrix as a PGM greyscale image. | |
template<typename eT > | |
static bool | diskio::save_pgm_binary (const Mat< eT > &x, std::ostream &f) |
Save a matrix as a PGM greyscale image. | |
template<typename eT > | |
static bool | diskio::save_pgm_binary (const Mat< eT > &x, const std::string &final_name) |
Save a matrix as a PGM greyscale image. | |
template<typename T1 > | |
static bool | diskio::save_ppm_binary (const field< T1 > &x, std::ostream &f) |
template<typename T1 > | |
static bool | diskio::save_ppm_binary (const field< T1 > &x, const std::string &final_name) |
template<typename eT > | |
bool | diskio::save_ppm_binary (const Cube< eT > &x, std::ostream &f) |
template<typename eT > | |
bool | diskio::save_ppm_binary (const Cube< eT > &x, const std::string &final_name) |
template<typename eT > | |
static bool | diskio::save_raw_ascii (const Cube< eT > &x, std::ostream &f) |
Save a cube as raw text (no header, human readable). | |
template<typename eT > | |
static bool | diskio::save_raw_ascii (const Cube< eT > &x, const std::string &name) |
Save a cube as raw text (no header, human readable). | |
template<typename eT > | |
static bool | diskio::save_raw_ascii (const Mat< eT > &x, std::ostream &f) |
template<typename eT > | |
static bool | diskio::save_raw_ascii (const Mat< eT > &x, const std::string &final_name) |
template<typename eT > | |
static bool | diskio::save_raw_binary (const Cube< eT > &x, std::ostream &f) |
template<typename eT > | |
static bool | diskio::save_raw_binary (const Cube< eT > &x, const std::string &name) |
Save a cube as raw binary (no header). | |
template<typename eT > | |
static bool | diskio::save_raw_binary (const Mat< eT > &x, std::ostream &f) |
template<typename eT > | |
static bool | diskio::save_raw_binary (const Mat< eT > &x, const std::string &final_name) |
Save a matrix as raw binary (no header). | |
static bool | diskio::save_std_string (const field< std::string > &x, std::ostream &f) |
static bool | diskio::save_std_string (const field< std::string > &x, const std::string &name) |
enum file_type |
Definition at line 132 of file forward_bones.hpp.
void diskio::conv_to_hex | ( | char * | out, | |
const u8 | x | |||
) | [inline, static, inherited] |
Definition at line 468 of file diskio_meat.hpp.
char diskio::conv_to_hex_char | ( | const u8 | x | ) | [inline, static, inherited] |
Definition at line 436 of file diskio_meat.hpp.
std::string diskio::gen_bin_header | ( | const Cube< eT > & | x | ) | [inline, static, inherited] |
Generate the first line of the header used for saving cubes in binary format. Format: "ARMA_CUB_BIN_ABXYZ". A is one of: I (for integral types) or F (for floating point types). B is one of: U (for unsigned types), S (for signed types), N (for not appliable) or C (for complex types). XYZ specifies the width of each element in terms of bytes, e.g. "008" indicates eight bytes.
Definition at line 279 of file diskio_meat.hpp.
std::string diskio::gen_bin_header | ( | const Mat< eT > & | x | ) | [inline, static, inherited] |
Generate the first line of the header used for saving matrices in binary format. Format: "ARMA_MAT_BIN_ABXYZ". A is one of: I (for integral types) or F (for floating point types). B is one of: U (for unsigned types), S (for signed types), N (for not appliable) or C (for complex types). XYZ specifies the width of each element in terms of bytes, e.g. "008" indicates eight bytes.
Definition at line 111 of file diskio_meat.hpp.
std::string diskio::gen_tmp_name | ( | const std::string & | x | ) | [inline, static, inherited] |
Append a quasi-random string to the given filename. The rand() function is deliberately not used, as rand() has an internal state that changes from call to call. Such states should not be modified in scientific applications, where the results should be reproducable and not affected by saving data.
Definition at line 488 of file diskio_meat.hpp.
std::string diskio::gen_txt_header | ( | const Cube< eT > & | x | ) | [inline, static, inherited] |
Generate the first line of the header used for saving cubes in text format. Format: "ARMA_CUB_TXT_ABXYZ". A is one of: I (for integral types) or F (for floating point types). B is one of: U (for unsigned types), S (for signed types), N (for not appliable) or C (for complex types). XYZ specifies the width of each element in terms of bytes, e.g. "008" indicates eight bytes.
Definition at line 195 of file diskio_meat.hpp.
std::string diskio::gen_txt_header | ( | const Mat< eT > & | x | ) | [inline, static, inherited] |
Generate the first line of the header used for saving matrices in text format. Format: "ARMA_MAT_TXT_ABXYZ". A is one of: I (for integral types) or F (for floating point types). B is one of: U (for unsigned types), S (for signed types), N (for not appliable) or C (for complex types). XYZ specifies the width of each element in terms of bytes, e.g. "008" indicates eight bytes.
Definition at line 27 of file diskio_meat.hpp.
file_type diskio::guess_file_type | ( | std::istream & | f | ) | [inline, static, inherited] |
Definition at line 357 of file diskio_meat.hpp.
bool diskio::load_arma_ascii | ( | Cube< eT > & | x, | |
std::istream & | f, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Load a cube in text format (human readable), with a header that indicates the cube type as well as its dimensions
Definition at line 2131 of file diskio_meat.hpp.
bool diskio::load_arma_ascii | ( | Cube< eT > & | x, | |
const std::string & | name, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Load a cube in text format (human readable), with a header that indicates the cube type as well as its dimensions
Definition at line 2107 of file diskio_meat.hpp.
bool diskio::load_arma_ascii | ( | Mat< eT > & | x, | |
std::istream & | f, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Load a matrix in text format (human readable), with a header that indicates the matrix type as well as its dimensions
Definition at line 1224 of file diskio_meat.hpp.
bool diskio::load_arma_ascii | ( | Mat< eT > & | x, | |
const std::string & | name, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Load a matrix in text format (human readable), with a header that indicates the matrix type as well as its dimensions
Definition at line 1200 of file diskio_meat.hpp.
bool diskio::load_arma_binary | ( | field< T1 > & | x, | |
std::istream & | f, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Definition at line 2423 of file diskio_meat.hpp.
bool diskio::load_arma_binary | ( | field< T1 > & | x, | |
const std::string & | name, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Definition at line 2401 of file diskio_meat.hpp.
bool diskio::load_arma_binary | ( | Cube< eT > & | x, | |
std::istream & | f, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Definition at line 2203 of file diskio_meat.hpp.
bool diskio::load_arma_binary | ( | Cube< eT > & | x, | |
const std::string & | name, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Load a cube in binary format, with a header that indicates the cube type as well as its dimensions
Definition at line 2180 of file diskio_meat.hpp.
bool diskio::load_arma_binary | ( | Mat< eT > & | x, | |
std::istream & | f, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Definition at line 1410 of file diskio_meat.hpp.
bool diskio::load_arma_binary | ( | Mat< eT > & | x, | |
const std::string & | name, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Load a matrix in binary format, with a header that indicates the matrix type as well as its dimensions
Definition at line 1387 of file diskio_meat.hpp.
bool diskio::load_auto_detect | ( | field< T1 > & | x, | |
std::istream & | f, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Try to load a field by automatically determining its type.
Definition at line 2647 of file diskio_meat.hpp.
bool diskio::load_auto_detect | ( | field< T1 > & | x, | |
const std::string & | name, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Try to load a field by automatically determining its type.
Definition at line 2623 of file diskio_meat.hpp.
bool diskio::load_auto_detect | ( | Cube< eT > & | x, | |
std::istream & | f, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Try to load a cube by automatically determining its type.
Definition at line 2268 of file diskio_meat.hpp.
bool diskio::load_auto_detect | ( | Cube< eT > & | x, | |
const std::string & | name, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Try to load a cube by automatically determining its type.
Definition at line 2244 of file diskio_meat.hpp.
bool diskio::load_auto_detect | ( | Mat< eT > & | x, | |
std::istream & | f, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Try to load a matrix by automatically determining its type.
Definition at line 1654 of file diskio_meat.hpp.
bool diskio::load_auto_detect | ( | Mat< eT > & | x, | |
const std::string & | name, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Try to load a matrix by automatically determining its type.
Definition at line 1630 of file diskio_meat.hpp.
bool diskio::load_csv_ascii | ( | Mat< eT > & | x, | |
std::istream & | f, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Load a matrix in CSV text format (human readable).
Definition at line 1291 of file diskio_meat.hpp.
bool diskio::load_csv_ascii | ( | Mat< eT > & | x, | |
const std::string & | name, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Load a matrix in CSV text format (human readable).
Definition at line 1267 of file diskio_meat.hpp.
bool diskio::load_pgm_binary | ( | Mat< std::complex< T > > & | x, | |
std::istream & | is, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Load a PGM greyscale image as a matrix.
Definition at line 1612 of file diskio_meat.hpp.
bool diskio::load_pgm_binary | ( | Mat< std::complex< T > > & | x, | |
const std::string & | name, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Load a PGM greyscale image as a matrix.
Definition at line 1594 of file diskio_meat.hpp.
bool diskio::load_pgm_binary | ( | Mat< eT > & | x, | |
std::istream & | is, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Load a PGM greyscale image as a matrix.
Definition at line 1496 of file diskio_meat.hpp.
bool diskio::load_pgm_binary | ( | Mat< eT > & | x, | |
const std::string & | name, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Load a PGM greyscale image as a matrix.
Definition at line 1472 of file diskio_meat.hpp.
bool diskio::load_ppm_binary | ( | field< T1 > & | x, | |
std::istream & | f, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Definition at line 2918 of file diskio_meat.hpp.
bool diskio::load_ppm_binary | ( | field< T1 > & | x, | |
const std::string & | final_name, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Definition at line 2895 of file diskio_meat.hpp.
bool diskio::load_ppm_binary | ( | Cube< eT > & | x, | |
std::istream & | f, | |||
std::string & | err_msg | |||
) | [inline, inherited] |
Definition at line 2717 of file diskio_meat.hpp.
bool diskio::load_ppm_binary | ( | Cube< eT > & | x, | |
const std::string & | name, | |||
std::string & | err_msg | |||
) | [inline, inherited] |
Definition at line 2694 of file diskio_meat.hpp.
bool diskio::load_raw_ascii | ( | Cube< eT > & | x, | |
std::istream & | f, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Load a cube as raw text (no header, human readable). NOTE: this is much slower than reading a file with a header.
Definition at line 2018 of file diskio_meat.hpp.
bool diskio::load_raw_ascii | ( | Cube< eT > & | x, | |
const std::string & | name, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Load a cube as raw text (no header, human readable). NOTE: this is much slower than reading a file with a header.
Definition at line 1987 of file diskio_meat.hpp.
bool diskio::load_raw_ascii | ( | Mat< eT > & | x, | |
std::istream & | f, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Load a matrix as raw text (no header, human readable). Can read matrices saved as text in Matlab and Octave. NOTE: this is much slower than reading a file with a header.
Definition at line 1040 of file diskio_meat.hpp.
bool diskio::load_raw_ascii | ( | Mat< eT > & | x, | |
const std::string & | name, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Load a matrix as raw text (no header, human readable). Can read matrices saved as text in Matlab and Octave. NOTE: this is much slower than reading a file with a header.
Definition at line 1014 of file diskio_meat.hpp.
bool diskio::load_raw_binary | ( | Cube< eT > & | x, | |
std::istream & | f, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Definition at line 2072 of file diskio_meat.hpp.
bool diskio::load_raw_binary | ( | Cube< eT > & | x, | |
const std::string & | name, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Load a cube in binary format (no header); the cube is assumed to have one slice with one column
Definition at line 2049 of file diskio_meat.hpp.
bool diskio::load_raw_binary | ( | Mat< eT > & | x, | |
std::istream & | f, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Definition at line 1165 of file diskio_meat.hpp.
bool diskio::load_raw_binary | ( | Mat< eT > & | x, | |
const std::string & | name, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Load a matrix in binary format (no header); the matrix is assumed to have one column
Definition at line 1142 of file diskio_meat.hpp.
bool diskio::load_std_string | ( | field< std::string > & | x, | |
std::istream & | f, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Definition at line 2546 of file diskio_meat.hpp.
bool diskio::load_std_string | ( | field< std::string > & | x, | |
const std::string & | name, | |||
std::string & | err_msg | |||
) | [inline, static, inherited] |
Definition at line 2525 of file diskio_meat.hpp.
void diskio::pnm_skip_comments | ( | std::istream & | f | ) | [inline, static, inherited] |
Definition at line 1447 of file diskio_meat.hpp.
bool diskio::safe_rename | ( | const std::string & | old_name, | |
const std::string & | new_name | |||
) | [inline, static, inherited] |
Safely rename a file. Before renaming, test if we can write to the final file. This should prevent: (i) overwriting files that are write protected, (ii) overwriting directories.
Definition at line 552 of file diskio_meat.hpp.
bool diskio::save_arma_ascii | ( | const Cube< eT > & | x, | |
std::ostream & | f | |||
) | [inline, static, inherited] |
Save a cube in text format (human readable), with a header that indicates the cube type as well as its dimensions
Definition at line 1881 of file diskio_meat.hpp.
bool diskio::save_arma_ascii | ( | const Cube< eT > & | x, | |
const std::string & | final_name | |||
) | [inline, static, inherited] |
Save a cube in text format (human readable), with a header that indicates the cube type as well as its dimensions
Definition at line 1848 of file diskio_meat.hpp.
bool diskio::save_arma_ascii | ( | const Mat< eT > & | x, | |
std::ostream & | f | |||
) | [inline, static, inherited] |
Save a matrix in text format (human readable), with a header that indicates the matrix type as well as its dimensions
Definition at line 733 of file diskio_meat.hpp.
bool diskio::save_arma_ascii | ( | const Mat< eT > & | x, | |
const std::string & | final_name | |||
) | [inline, static, inherited] |
Save a matrix in text format (human readable), with a header that indicates the matrix type as well as its dimensions
Definition at line 700 of file diskio_meat.hpp.
bool diskio::save_arma_binary | ( | const field< T1 > & | x, | |
std::ostream & | f | |||
) | [inline, static, inherited] |
Definition at line 2371 of file diskio_meat.hpp.
bool diskio::save_arma_binary | ( | const field< T1 > & | x, | |
const std::string & | name | |||
) | [inline, static, inherited] |
Definition at line 2340 of file diskio_meat.hpp.
bool diskio::save_arma_binary | ( | const Cube< eT > & | x, | |
std::ostream & | f | |||
) | [inline, static, inherited] |
Save a cube in binary format, with a header that stores the cube type as well as its dimensions
Definition at line 1968 of file diskio_meat.hpp.
bool diskio::save_arma_binary | ( | const Cube< eT > & | x, | |
const std::string & | final_name | |||
) | [inline, static, inherited] |
Save a cube in binary format, with a header that stores the cube type as well as its dimensions
Definition at line 1935 of file diskio_meat.hpp.
bool diskio::save_arma_binary | ( | const Mat< eT > & | x, | |
std::ostream & | f | |||
) | [inline, static, inherited] |
Save a matrix in binary format, with a header that stores the matrix type as well as its dimensions
Definition at line 894 of file diskio_meat.hpp.
bool diskio::save_arma_binary | ( | const Mat< eT > & | x, | |
const std::string & | final_name | |||
) | [inline, static, inherited] |
Save a matrix in binary format, with a header that stores the matrix type as well as its dimensions
Definition at line 861 of file diskio_meat.hpp.
bool diskio::save_csv_ascii | ( | const Mat< eT > & | x, | |
std::ostream & | f | |||
) | [inline, static, inherited] |
Save a matrix in CSV text format (human readable).
Definition at line 815 of file diskio_meat.hpp.
bool diskio::save_csv_ascii | ( | const Mat< eT > & | x, | |
const std::string & | final_name | |||
) | [inline, static, inherited] |
Save a matrix in CSV text format (human readable).
Definition at line 783 of file diskio_meat.hpp.
bool diskio::save_pgm_binary | ( | const Mat< std::complex< T > > & | x, | |
std::ostream & | f | |||
) | [inline, static, inherited] |
Save a matrix as a PGM greyscale image.
Definition at line 997 of file diskio_meat.hpp.
bool diskio::save_pgm_binary | ( | const Mat< std::complex< T > > & | x, | |
const std::string & | final_name | |||
) | [inline, static, inherited] |
Save a matrix as a PGM greyscale image.
Definition at line 982 of file diskio_meat.hpp.
bool diskio::save_pgm_binary | ( | const Mat< eT > & | x, | |
std::ostream & | f | |||
) | [inline, static, inherited] |
Save a matrix as a PGM greyscale image.
Definition at line 949 of file diskio_meat.hpp.
bool diskio::save_pgm_binary | ( | const Mat< eT > & | x, | |
const std::string & | final_name | |||
) | [inline, static, inherited] |
Save a matrix as a PGM greyscale image.
Definition at line 912 of file diskio_meat.hpp.
bool diskio::save_ppm_binary | ( | const field< T1 > & | x, | |
std::ostream & | f | |||
) | [inline, static, inherited] |
Definition at line 3063 of file diskio_meat.hpp.
bool diskio::save_ppm_binary | ( | const field< T1 > & | x, | |
const std::string & | final_name | |||
) | [inline, static, inherited] |
Definition at line 3033 of file diskio_meat.hpp.
bool diskio::save_ppm_binary | ( | const Cube< eT > & | x, | |
std::ostream & | f | |||
) | [inline, inherited] |
Definition at line 2853 of file diskio_meat.hpp.
bool diskio::save_ppm_binary | ( | const Cube< eT > & | x, | |
const std::string & | final_name | |||
) | [inline, inherited] |
Definition at line 2822 of file diskio_meat.hpp.
bool diskio::save_raw_ascii | ( | const Cube< eT > & | x, | |
std::ostream & | f | |||
) | [inline, static, inherited] |
Save a cube as raw text (no header, human readable).
Definition at line 1757 of file diskio_meat.hpp.
bool diskio::save_raw_ascii | ( | const Cube< eT > & | x, | |
const std::string & | name | |||
) | [inline, static, inherited] |
Save a cube as raw text (no header, human readable).
Definition at line 1725 of file diskio_meat.hpp.
bool diskio::save_raw_ascii | ( | const Mat< eT > & | x, | |
std::ostream & | f | |||
) | [inline, static, inherited] |
Save a matrix as raw text (no header, human readable). Matrices can be loaded in Matlab and Octave, as long as they don't have complex elements.
Definition at line 612 of file diskio_meat.hpp.
bool diskio::save_raw_ascii | ( | const Mat< eT > & | x, | |
const std::string & | final_name | |||
) | [inline, static, inherited] |
Save a matrix as raw text (no header, human readable). Matrices can be loaded in Matlab and Octave, as long as they don't have complex elements.
Definition at line 579 of file diskio_meat.hpp.
bool diskio::save_raw_binary | ( | const Cube< eT > & | x, | |
std::ostream & | f | |||
) | [inline, static, inherited] |
Definition at line 1832 of file diskio_meat.hpp.
bool diskio::save_raw_binary | ( | const Cube< eT > & | x, | |
const std::string & | name | |||
) | [inline, static, inherited] |
Save a cube as raw binary (no header).
Definition at line 1801 of file diskio_meat.hpp.
bool diskio::save_raw_binary | ( | const Mat< eT > & | x, | |
std::ostream & | f | |||
) | [inline, static, inherited] |
Definition at line 684 of file diskio_meat.hpp.
bool diskio::save_raw_binary | ( | const Mat< eT > & | x, | |
const std::string & | final_name | |||
) | [inline, static, inherited] |
Save a matrix as raw binary (no header).
Definition at line 653 of file diskio_meat.hpp.
bool diskio::save_std_string | ( | const field< std::string > & | x, | |
std::ostream & | f | |||
) | [inline, static, inherited] |
Definition at line 2499 of file diskio_meat.hpp.
bool diskio::save_std_string | ( | const field< std::string > & | x, | |
const std::string & | name | |||
) | [inline, static, inherited] |
Definition at line 2469 of file diskio_meat.hpp.