GNU Octave  8.1.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

OCTINTERP_API std::string read_mat5_binary_element (std::istream &is, const std::string &filename, bool swap, bool &global, octave_value &tc)
 
OCTINTERP_API int read_mat5_binary_file_header (std::istream &is, bool &swap, bool quiet=false, const std::string &filename="")
 
OCTINTERP_API 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()

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

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

References __get_interpreter__(), octave_scalar_map::begin(), octave_value::cell_value(), charMatrix, Sparse< T, Alloc >::cidx(), Array< T, Alloc >::clear(), octave_scalar_map::contents(), octave_value::convert_to_str(), Sparse< T, Alloc >::data(), Array< T, Alloc >::data(), dir_sep_chars, octave_scalar_map::end(), err_disabled_feature(), error(), octave_value::fcn_handle_value(), octave_fcn_handle::fcn_val(), feval(), flt_fmt_ieee_big_endian, flt_fmt_ieee_little_endian, flt_fmt_unknown, Array< T, Alloc >::fortran_vec(), free(), imag(), INT8, octave_value::is_defined(), octave_value::isempty(), Array< T, Alloc >::isvector(), octave_scalar_map::key(), len, load_fcn_from_file(), m, make_absolute(), 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, Matrix, miCOMPRESSED, miINT32, miMATRIX, miUINT16, miUINT32, miUINT8, miUTF16, miUTF32, miUTF8, n, native_float_format(), NDArray, octave_scalar_map::nfields(), dim_vector::numel(), Array< T, Alloc >::numel(), octave_exec_home(), OCTAVE_LOCAL_BUFFER, OCTAVE_MAT5_INTEGER_READ, octave_u16_to_u8_wrapper(), octave_u32_to_u8_wrapper(), octave_value(), 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(), Sparse< T, Alloc >::ridx(), octave_value::scalar_map_value(), SparseComplexMatrix, SparseMatrix, octave_value::string_value(), subsys_ov, swap_bytes< 4 >(), octave_value::uint32_array_value(), octave_value::uint8_array_value(), warning_with_id(), and Sparse< T, Alloc >::xdata().

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

◆ read_mat5_binary_file_header()

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

◆ save_mat5_binary_element()

OCTINTERP_API 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 2321 of file ls-mat5.cc.

References __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, Alloc >::cols(), octave_value::complex_array_value(), Array< T, Alloc >::data(), octave_value::dims(), error(), feval(), octave_value::float_array_value(), octave_value::float_complex_array_value(), free(), 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(), maybe_convert_to_u16(), miCOMPRESSED, miINT32, miINT8, miMATRIX, miUINT32, miUTF16, miUTF8, n, octave_value::ndims(), dim_vector::numel(), Array< T, Alloc >::numel(), Sparse< T, Alloc >::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 load_save_system::do_save(), and write_mat5_cell_array().