GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
ls-mat5.h File Reference
#include "octave-config.h"
#include <iosfwd>
#include <string>
Include dependency graph for ls-mat5.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  mat5_data_type {
  miINT8 = 1 , miUINT8 , miINT16 , miUINT16 ,
  miINT32 , miUINT32 , miSINGLE , miRESERVE1 ,
  miDOUBLE , miRESERVE2 , miRESERVE3 , miINT64 ,
  miUINT64 , miMATRIX , miCOMPRESSED , miUTF8 ,
  miUTF16 , miUTF32
}
 

Functions

std::string read_mat5_binary_element (std::istream &is, const std::string &filename, bool swap, bool &global, octave_value &tc)
 
int read_mat5_binary_file_header (std::istream &is, bool &swap, bool quiet=false, const std::string &filename="")
 
bool save_mat5_binary_element (std::ostream &os, const octave_value &tc, const std::string &name, bool mark_global, bool mat7_format, bool save_as_floats, bool compressing=false)
 

Enumeration Type Documentation

◆ mat5_data_type

Enumerator
miINT8 
miUINT8 
miINT16 
miUINT16 
miINT32 
miUINT32 
miSINGLE 
miRESERVE1 
miDOUBLE 
miRESERVE2 
miRESERVE3 
miINT64 
miUINT64 
miMATRIX 
miCOMPRESSED 
miUTF8 
miUTF16 
miUTF32 

Definition at line 36 of file ls-mat5.h.

Function Documentation

◆ read_mat5_binary_element()

std::string read_mat5_binary_element ( std::istream &  is,
const std::string &  filename,
bool  swap,
bool &  global,
octave_value tc 
)

Definition at line 477 of file ls-mat5.cc.

References octave::__get_interpreter__(), octave_scalar_map::begin(), octave_value::cell_value(), Sparse< T >::cidx(), Array< T >::clear(), octave_scalar_map::contents(), octave_value::convert_to_str(), Sparse< T >::data(), octave::sys::file_ops::dir_sep_chars(), octave_scalar_map::end(), err_disabled_feature(), error(), octave::interpreter::eval_string(), octave::sys::base_file_stat::exists(), octave_value::fcn_handle_value(), octave_fcn_handle::fcn_val(), octave::feval(), octave::cdef_manager::find_class(), octave::directory_path::find_first_of(), octave::load_path::find_method(), octave::mach_info::flt_fmt_ieee_big_endian, octave::mach_info::flt_fmt_ieee_little_endian, octave::mach_info::flt_fmt_unknown, Array< T >::fortran_vec(), octave::interpreter::get_cdef_manager(), octave::interpreter::get_evaluator(), octave::interpreter::get_load_path(), imag(), INT8, octave_value::is_defined(), octave_value::isempty(), octave_scalar_map::key(), len, octave::load_fcn_from_file(), m, octave::sys::env::make_absolute(), octave::tree_evaluator::make_fcn_handle(), MAT_FILE_CELL_CLASS, MAT_FILE_CHAR_CLASS, MAT_FILE_DOUBLE_CLASS, MAT_FILE_FUNCTION_CLASS, MAT_FILE_INT16_CLASS, MAT_FILE_INT32_CLASS, MAT_FILE_INT64_CLASS, MAT_FILE_INT8_CLASS, MAT_FILE_OBJECT_CLASS, MAT_FILE_SINGLE_CLASS, MAT_FILE_SPARSE_CLASS, MAT_FILE_STRUCT_CLASS, MAT_FILE_UINT16_CLASS, MAT_FILE_UINT32_CLASS, MAT_FILE_UINT64_CLASS, MAT_FILE_UINT8_CLASS, MAT_FILE_WORKSPACE_CLASS, miCOMPRESSED, miINT32, miMATRIX, miUINT32, miUTF16, miUTF32, miUTF8, n, name, octave::mach_info::native_float_format(), octave_scalar_map::nfields(), dim_vector::numel(), Array< T >::numel(), octave::config::octave_exec_home(), OCTAVE_LOCAL_BUFFER, OCTAVE_MAT5_INTEGER_READ, octave_value(), octave::cdef_object::ok(), octave::tree_evaluator::pop_scope(), octave::tree_evaluator::push_dummy_scope(), read_int(), read_mat5_binary_data(), read_mat5_integer_data(), read_mat5_tag(), READ_PAD, octave_class::reconstruct_exemplar(), octave_class::reconstruct_parents(), dim_vector::resize(), retval, Sparse< T >::ridx(), octave_value::scalar_map_value(), octave_value::string_value(), subsys_ov, swap_bytes< 4 >(), octave::load_path::system_path(), octave_value::uint32_array_value(), octave_value::uint8_array_value(), warning_with_id(), and Sparse< T >::xdata().

Referenced by octave::load_save_system::load_vars(), and read_mat5_binary_file_header().

◆ read_mat5_binary_file_header()

int read_mat5_binary_file_header ( std::istream &  is,
bool &  swap,
bool  quiet = false,
const std::string &  filename = "" 
)

◆ save_mat5_binary_element()

bool save_mat5_binary_element ( std::ostream &  os,
const octave_value tc,
const std::string &  name,
bool  mark_global,
bool  mat7_format,
bool  save_as_floats,
bool  compressing = false 
)

Definition at line 2252 of file ls-mat5.cc.

References octave::__get_load_path__(), octave_value::array_value(), octave_value::bool_array_value(), octave_value::cell_value(), octave_value::char_array_value(), octave_value::class_name(), Sparse< T >::cols(), octave_value::complex_array_value(), Array< T >::data(), octave_value::dims(), error(), octave::feval(), octave::load_path::find_method(), octave_value::float_array_value(), octave_value::float_complex_array_value(), imag(), octave_value::int16_array_value(), octave_value::int32_array_value(), octave_value::int64_array_value(), octave_value::int8_array_value(), octave_value::is_complex_matrix(), octave_value::is_complex_scalar(), octave_value::is_inline_function(), octave_value::is_range(), octave_value::is_real_matrix(), octave_value::is_real_scalar(), octave_value::is_single_type(), octave_value::is_string(), octave_value::iscell(), octave_value::iscomplex(), octave_value::islogical(), octave_value::isobject(), octave_value::issparse(), octave_value::isstruct(), len, m, octave_value::map_value(), MAT_FILE_CELL_CLASS, MAT_FILE_CHAR_CLASS, MAT_FILE_DOUBLE_CLASS, MAT_FILE_INT16_CLASS, MAT_FILE_INT32_CLASS, MAT_FILE_INT64_CLASS, MAT_FILE_INT8_CLASS, MAT_FILE_OBJECT_CLASS, MAT_FILE_SINGLE_CLASS, MAT_FILE_SPARSE_CLASS, MAT_FILE_STRUCT_CLASS, MAT_FILE_UINT16_CLASS, MAT_FILE_UINT32_CLASS, MAT_FILE_UINT64_CLASS, MAT_FILE_UINT8_CLASS, max(), miCOMPRESSED, miINT32, miINT8, miMATRIX, miUINT16, miUINT32, n, name, octave_value::ndims(), dim_vector::numel(), Array< T >::numel(), Sparse< T >::nzmax(), OCTAVE_LOCAL_BUFFER, PAD, real(), save_mat5_element_length(), octave_value::sparse_complex_matrix_value(), octave_value::sparse_matrix_value(), octave_value::uint16_array_value(), octave_value::uint32_array_value(), octave_value::uint64_array_value(), octave_value::uint8_array_value(), warn_dim_too_large(), warn_wrong_type_arg(), write_mat5_array(), write_mat5_cell_array(), write_mat5_integer_data(), write_mat5_sparse_index_vector(), and write_mat5_tag().

Referenced by octave::load_save_system::do_save(), and write_mat5_cell_array().