GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
ls-mat4.cc File Reference
#include <iomanip>
#include <iostream>
#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 "pt-exp.h"
#include "sysdep.h"
#include "unwind-prot.h"
#include "utils.h"
#include "variables.h"
#include "version.h"
Include dependency graph for ls-mat4.cc:

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)
 
static void read_mat_binary_data (std::istream &is, double *data, int precision, int len, bool swap, octave::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)
 

Function Documentation

◆ float_format_to_mopt_digit()

int float_format_to_mopt_digit ( octave::mach_info::float_format  flt_fmt)

◆ mopt_digit_to_float_format()

◆ read_mat_binary_data() [1/2]

static void read_mat_binary_data ( std::istream &  is,
double data,
int  precision,
int  len,
bool  swap,
octave::mach_info::float_format  flt_fmt 
)
static

Definition at line 69 of file ls-mat4.cc.

References flt_fmt, is, LS_DOUBLE, LS_FLOAT, LS_INT, LS_SHORT, LS_U_CHAR, LS_U_SHORT, read_doubles(), and swap.

Referenced by do_load(), and read_mat_binary_data().

◆ read_mat_binary_data() [2/2]

◆ 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 
)

◆ save_mat_binary_data()