![]() |
GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <cfloat>#include <cstring>#include <cctype>#include <fstream>#include <iomanip>#include <iostream>#include <string>#include <vector>#include "byte-swap.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-time.h"#include "quit.h"#include "str-vec.h"#include "oct-locbuf.h"#include "Cell.h"#include "defun.h"#include "error.h"#include "gripes.h"#include "load-save.h"#include "oct-obj.h"#include "oct-map.h"#include "ov-cell.h"#include "pager.h"#include "pt-exp.h"#include "sysdep.h"#include "unwind-prot.h"#include "utils.h"#include "variables.h"#include "version.h"#include "dMatrix.h"#include "dSparse.h"#include "ls-mat4.h"
Go to the source code of this file.
Functions | |
| int | float_format_to_mopt_digit (oct_mach_info::float_format flt_fmt) |
| oct_mach_info::float_format | mopt_digit_to_float_format (int mach) |
| static void | read_mat_binary_data (std::istream &is, double *data, int precision, int len, bool swap, oct_mach_info::float_format flt_fmt) |
| 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 | ( | oct_mach_info::float_format | flt_fmt | ) |
Definition at line 208 of file ls-mat4.cc.
References oct_mach_info::flt_fmt_ieee_big_endian, and oct_mach_info::flt_fmt_ieee_little_endian.
Referenced by save_mat_binary_data(), and write_header().
| oct_mach_info::float_format mopt_digit_to_float_format | ( | int | mach | ) |
Definition at line 182 of file ls-mat4.cc.
References oct_mach_info::flt_fmt_ieee_big_endian, oct_mach_info::flt_fmt_ieee_little_endian, and oct_mach_info::flt_fmt_unknown.
Referenced by read_binary_file_header(), and read_mat_binary_data().
|
static |
Definition at line 76 of file ls-mat4.cc.
References LS_DOUBLE, LS_FLOAT, LS_INT, LS_SHORT, LS_U_CHAR, LS_U_SHORT, and read_doubles().
Referenced by do_load(), and read_mat_binary_data().
| std::string read_mat_binary_data | ( | std::istream & | is, |
| const std::string & | filename, | ||
| octave_value & | tc | ||
| ) |
Definition at line 240 of file ls-mat4.cc.
References octave_value::convert_to_str(), error(), error_state, oct_mach_info::flt_fmt_unknown, Array< T >::fortran_vec(), imag(), mopt_digit_to_float_format(), OCTAVE_LOCAL_BUFFER, read_mat_binary_data(), read_mat_file_header(), Matrix::resize(), SparseComplexMatrix, Matrix::transpose(), SparseMatrix::transpose(), SparseComplexMatrix::transpose(), ComplexMatrix::transpose(), and Array< T >::xelem().
| 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 112 of file ls-mat4.cc.
References error(), imag(), swap_bytes< 4 >(), and oct_mach_info::words_big_endian().
Referenced by get_file_format(), and read_mat_binary_data().
| bool save_mat_binary_data | ( | std::ostream & | os, |
| const octave_value & | tc, | ||
| const std::string & | name | ||
| ) |
Definition at line 422 of file ls-mat4.cc.
References Range::base(), octave_value::char_matrix_value(), Sparse< T >::cidx(), Array< T >::cols(), octave_value::columns(), octave_value::complex_matrix_value(), octave_value::complex_value(), Array< T >::data(), Sparse< T >::data(), octave_value::double_value(), float_format_to_mopt_digit(), gripe_wrong_type_arg(), imag(), Range::inc(), octave_value::is_complex_matrix(), octave_value::is_complex_scalar(), octave_value::is_complex_type(), octave_value::is_range(), octave_value::is_real_matrix(), octave_value::is_real_scalar(), octave_value::is_sparse_type(), octave_value::is_string(), octave_value::matrix_value(), oct_mach_info::native_float_format(), Range::nelem(), octave_value::nnz(), OCTAVE_LOCAL_BUFFER, octave_value::range_value(), real, Sparse< T >::ridx(), charMatrix::row_as_string(), Array< T >::rows(), octave_value::rows(), octave_value::sparse_complex_matrix_value(), octave_value::sparse_matrix_value(), and x.
Referenced by do_save().
1.8.1.2