#include <iomanip>#include <istream>#include <ostream>#include <string>#include "byte-swap.h"#include "dMatrix.h"#include "dSparse.h"#include "data-conv.h"#include "file-ops.h"#include "glob-match.h"#include "lo-mappers.h"#include "mach-info.h"#include "oct-env.h"#include "oct-locbuf.h"#include "oct-time.h"#include "quit.h"#include "ls-mat4.h"#include "Cell.h"#include "defun.h"#include "error.h"#include "errwarn.h"#include "load-save.h"#include "oct-map.h"#include "ov-cell.h"#include "ovl.h"#include "pager.h"#include "sysdep.h"#include "utils.h"#include "variables.h"#include "version.h"Go to the source code of this file.
Functions | |
| int | float_format_to_mopt_digit (octave::mach_info::float_format flt_fmt) |
| octave::mach_info::float_format | mopt_digit_to_float_format (int mach) |
| std::string | read_mat_binary_data (std::istream &is, const std::string &filename, octave_value &tc) |
| 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) |
| bool | save_mat_binary_data (std::ostream &os, const octave_value &tc, const std::string &name) |
| int float_format_to_mopt_digit | ( | octave::mach_info::float_format | flt_fmt | ) |
Definition at line 200 of file ls-mat4.cc.
Referenced by save_mat_binary_data().
| octave::mach_info::float_format mopt_digit_to_float_format | ( | int | mach | ) |
Definition at line 174 of file ls-mat4.cc.
Referenced by read_mat_binary_data().
| 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(), imag(), len, mopt_digit_to_float_format(), OCTAVE_LOCAL_BUFFER, read_mat_file_header(), Array< T, Alloc >::rwdata(), ComplexMatrix::transpose(), SparseComplexMatrix::transpose(), Matrix::transpose(), SparseMatrix::transpose(), and Array< T, Alloc >::xelem().
Referenced by load_save_system::load_vars().
| 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 | ||
| ) |
Definition at line 107 of file ls-mat4.cc.
References error(), imag(), len, and swap_bytes< 4 >().
Referenced by read_mat_binary_data().
| 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(), Sparse< T, Alloc >::cidx(), Array< T, Alloc >::cols(), octave_value::columns(), octave_value::complex_matrix_value(), octave_value::complex_value(), Sparse< T, Alloc >::data(), Array< T, Alloc >::data(), 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, octave_value::matrix_value(), octave_value::nnz(), OCTAVE_LOCAL_BUFFER, octave_value::range_value(), real(), Sparse< T, Alloc >::ridx(), 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.