Go to the source code of this file.
Functions | |
OCTINTERP_API int | float_format_to_mopt_digit (octave::mach_info::float_format flt_fmt) |
OCTINTERP_API octave::mach_info::float_format | mopt_digit_to_float_format (int mach) |
OCTINTERP_API std::string | read_mat_binary_data (std::istream &is, const std::string &filename, octave_value &tc) |
OCTINTERP_API int | read_mat_file_header (std::istream &is, bool &swap, int32_t &mopt, int32_t &nr, int32_t &nc, int32_t &imag, int32_t &len, int quiet=0) |
OCTINTERP_API bool | save_mat_binary_data (std::ostream &os, const octave_value &tc, const std::string &name) |
OCTINTERP_API int float_format_to_mopt_digit | ( | octave::mach_info::float_format | flt_fmt | ) |
Definition at line 200 of file ls-mat4.cc.
References flt_fmt_ieee_big_endian, and flt_fmt_ieee_little_endian.
Referenced by save_mat_binary_data(), and load_save_system::write_header().
OCTINTERP_API octave::mach_info::float_format mopt_digit_to_float_format | ( | int | mach | ) |
Definition at line 174 of file ls-mat4.cc.
References flt_fmt_ieee_big_endian, flt_fmt_ieee_little_endian, and flt_fmt_unknown.
Referenced by read_binary_file_header(), and read_mat_binary_data().
OCTINTERP_API std::string read_mat_binary_data | ( | std::istream & | is, |
const std::string & | filename, | ||
octave_value & | tc | ||
) |
Definition at line 232 of file ls-mat4.cc.
References octave_value::convert_to_str(), error(), flt_fmt_unknown, Array< T, Alloc >::fortran_vec(), imag(), len, mopt_digit_to_float_format(), OCTAVE_LOCAL_BUFFER, r, read_mat_binary_data(), read_mat_file_header(), SparseComplexMatrix, SparseMatrix, ComplexMatrix::transpose(), SparseComplexMatrix::transpose(), Matrix::transpose(), SparseMatrix::transpose(), and Array< T, Alloc >::xelem().
OCTINTERP_API int read_mat_file_header | ( | std::istream & | is, |
bool & | swap, | ||
int32_t & | mopt, | ||
int32_t & | nr, | ||
int32_t & | nc, | ||
int32_t & | imag, | ||
int32_t & | len, | ||
int | quiet = 0 |
||
) |
Definition at line 107 of file ls-mat4.cc.
References error(), imag(), len, swap_bytes< 4 >(), and words_big_endian().
Referenced by load_save_system::get_file_format(), and read_mat_binary_data().
OCTINTERP_API bool save_mat_binary_data | ( | std::ostream & | os, |
const octave_value & | tc, | ||
const std::string & | name | ||
) |
Definition at line 394 of file ls-mat4.cc.
References octave_value::char_matrix_value(), Array< T, Alloc >::cols(), octave_value::columns(), octave_value::complex_matrix_value(), octave_value::complex_value(), octave_value::double_value(), float_format_to_mopt_digit(), imag(), octave_value::is_complex_matrix(), octave_value::is_complex_scalar(), octave_value::is_range(), octave_value::is_real_matrix(), octave_value::is_real_scalar(), octave_value::is_string(), octave_value::iscomplex(), octave_value::issparse(), len, m, octave_value::matrix_value(), native_float_format(), octave_value::nnz(), OCTAVE_LOCAL_BUFFER, r, octave_value::range_value(), real(), charMatrix::row_as_string(), octave_value::rows(), Array< T, Alloc >::rows(), octave_value::sparse_complex_matrix_value(), octave_value::sparse_matrix_value(), warn_wrong_type_arg(), and x.
Referenced by load_save_system::do_save().