GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
ls-mat4.h File Reference
#include "octave-config.h"
#include <iosfwd>
#include "mach-info.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=0)
 
bool save_mat_binary_data (std::ostream &os, const octave_value &tc, const std::string &name)
 

Function Documentation

◆ float_format_to_mopt_digit()

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().

◆ mopt_digit_to_float_format()

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_mat_binary_data().

◆ read_mat_binary_data()

◆ read_mat_file_header()

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 read_mat_binary_data().

◆ save_mat_binary_data()