GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
load-save.cc File Reference
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <sstream>
#include <string>
#include "byte-swap.h"
#include "dMatrix.h"
#include "data-conv.h"
#include "file-ops.h"
#include "file-stat.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 "str-vec.h"
#include "strftime-wrapper.h"
#include "Cell.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "interpreter-private.h"
#include "load-path.h"
#include "load-save.h"
#include "oct-hdf5.h"
#include "ovl.h"
#include "oct-map.h"
#include "ov-cell.h"
#include "pager.h"
#include "pt-exp.h"
#include "symtab.h"
#include "sysdep.h"
#include "unwind-prot.h"
#include "utils.h"
#include "variables.h"
#include "version.h"
#include "ls-hdf5.h"
#include "ls-mat-ascii.h"
#include "ls-mat4.h"
#include "ls-mat5.h"
#include "ls-oct-text.h"
#include "ls-oct-binary.h"
#include "zfstream.h"
Include dependency graph for load-save.cc:

Go to the source code of this file.

Typedefs

using format = LS_UNKNOWN
 

Functions

in the file Octave saves all the variables in the current scope full variable names or pattern syntax can be used to specify the variables to save If the and variable name arguments (ar{v1}, ots{}) must be specified as character strings. If called with a filename of code
 
static bool check_gzip_magic (const std::string &fname)
 
static std::string default_save_header_format (void)
 
octave_value do_load (std::istream &stream, const std::string &orig_fname, load_save_format format, octave::mach_info::float_format flt_fmt, bool list_only, bool swap, bool verbose, const string_vector &argv, int argv_idx, int argc, int nargout)
 
static void do_save (std::ostream &os, const octave_value &tc, const std::string &name, const std::string &help, bool global, load_save_format fmt, bool save_as_floats)
 
void do_save (std::ostream &os, const octave::symbol_record &sr, octave::symbol_record::context_id context, load_save_format fmt, bool save_as_floats)
 
static void dump_octave_core (std::ostream &os, const char *fname, load_save_format fmt, bool save_as_floats)
 
void dump_octave_core (void)
 
static OCTAVE_NORETURN void err_file_open (const std::string &fcn, const std::string &file)
 
else error ("load: unable to determine file format of '%s'", orig_fname.c_str())
 
static std::string find_file_to_load (const std::string &name, const std::string &orig_name)
 
OCTAVE_EXPORT octave_value_list Fload (const octave_value_list &args, int nargout) ar
 
 for (;i< argc;i++)
 
OCTAVE_EXPORT octave_value_list Fsave (const octave_value_list &args, int nargout) ar
 
static load_save_format get_file_format (std::istream &file, const std::string &filename)
 
static load_save_format get_file_format (const std::string &fname, const std::string &orig_fname, bool &use_zlib, bool quiet=false)
 
static bool glob_pattern_p (const std::string &pattern)
 
 if (argc > 1 &&! argv[1].empty() &&argv[1].at(0) !='-')
 
 if (orig_fname=="")
 
 if (format==LS_UNKNOWN) format
 
else if (format !=LS_UNKNOWN)
 
 if (i==argc) print_usage()
 
static void install_loaded_variable (const std::string &name, const octave_value &val, bool global, const std::string &)
 
bool is_octave_data_file (const std::string &fname)
 
static bool matches_patterns (const string_vector &patterns, int pat_idx, int num_pat, const std::string &name)
 
void octave_finalize_hdf5 (void)
 
void octave_prepare_hdf5 (void)
 
static string_vector parse_save_options (const string_vector &argv, load_save_format &format, bool &append, bool &save_as_floats, bool &use_zlib)
 
static string_vector parse_save_options (const std::string &arg, load_save_format &format, bool &append, bool &save_as_floats, bool &use_zlib)
 
 parse_save_options (Vsave_default_options, format, append, save_as_floats, use_zlib)
 
int read_binary_file_header (std::istream &is, bool &swap, octave::mach_info::float_format &flt_fmt, bool quiet)
 
static size_t save_fields (std::ostream &os, const octave_scalar_map &m, const std::string &pattern, load_save_format fmt, bool save_as_floats)
 
static size_t save_vars (std::ostream &os, const std::string &pattern, load_save_format fmt, bool save_as_floats)
 
static void save_vars (const string_vector &argv, int argv_idx, int argc, std::ostream &os, load_save_format fmt, bool save_as_floats, bool write_header_info)
 
void write_header (std::ostream &os, load_save_format format)
 

Variables

bool append = false
 
from the file ar {file}. If no variables are specified then all variables found in the file will be loaded. As with ode{save}
 
int argc = args.length () + 1
 
string_vector argv = args.make_argv ("load")
 
write the output to stdout if nargout otherwise return the output in a character string able ode tem append Append to the destination instead of overwriting tem ascii Save a matrix in a text file without a header or any other information The matrix must be D and only the real part of any complex value is written to the file Numbers are stored in single precision format and separated by spaces Additional options for the and gzip can also be used to convert the files for backward compatibility This option is only available if Octave was built with a link to the zlib libraries end table The list of variables to save may use wildcard patterns containing the following special characters
 
write the output to stdout if nargout otherwise return the output in a character string able ode tem append Append to the destination instead of overwriting tem ascii Save a matrix in a text file without a header or any other information The matrix must be D and only the real part of any complex value is written to the file Numbers are stored in single precision format and separated by spaces Additional options for the and gzip can also be used to convert the files for backward compatibility This option is only available if Octave was built with a link to the zlib libraries end table The list of variables to save may use wildcard patterns containing the following special match all characters except those specified by the pattern code {[a-zA-Z]} will match all lower and uppercase alphabetic characters. Wildcards may also be used in the field name specifications when using the @option{-struct} modifier (but not in the struct name itself). @end table Except when using the @sc{matlab} binary data file format or the @samp{-ascii} format
 
 else
 
octave::mach_info::float_format flt_fmt = octave::mach_info::flt_fmt_unknown
 
 fname = find_file_to_load (fname, orig_fname)
 
int i = 1
 
write the output to stdout if nargout is
 
bool list_only = false
 
std::string orig_fname = ""
 
in the file Octave saves all the variables in the current scope Otherwise
 
 ots {}
 
in the file Octave saves all the variables in the current scope full variable names or pattern syntax can be used to specify the variables to save If the ption {-struct} modifier is used then the fields of the trong{scalar} struct are saved as if they were variables with the corresponding field names. The ption{-struct} option can be combined with specific field names ar{f1}
 
return retval
 
bool save_as_floats = false
 
bool swap = false
 
bool use_zlib = false
 
write the output to stdout if nargout otherwise return the output in a character string able ode tem append Append to the destination instead of overwriting tem ascii Save a matrix in a text file without a header or any other information The matrix must be D and only the real part of any complex value is written to the file Numbers are stored in single precision format and separated by spaces Additional options for the and gzip can also be used to convert the files for backward compatibility This option is only available if Octave was built with a link to the zlib libraries end table The list of variables to save may use wildcard patterns containing the following special match all characters except those specified by var {list}. For example
 
static bool Vcrash_dumps_octave_core = true
 
bool verbose = false
 
static double Voctave_core_file_limit = -1.0
 
static std::string Voctave_core_file_name = "octave-workspace"
 
static std::string Voctave_core_file_options = "-binary"
 
static std::string Vsave_default_options = "-text"
 
static std::string Vsave_header_format_string = default_save_header_format ()
 

Typedef Documentation

◆ format

Definition at line 1616 of file load-save.cc.

Function Documentation

◆ arguments()

in the file Octave saves all the variables in the current scope full variable names or pattern syntax can be used to specify the variables to save If the and variable name arguments ( ar{v1}  ,
ots{}   
)

Definition at line 1612 of file load-save.cc.

◆ check_gzip_magic()

static bool check_gzip_magic ( const std::string fname)
static

Definition at line 226 of file load-save.cc.

References file, fname, and retval.

Referenced by get_file_format().

◆ default_save_header_format()

static std::string default_save_header_format ( void  )
static

◆ do_load()

◆ do_save() [1/2]

◆ do_save() [2/2]

void do_save ( std::ostream &  os,
const octave::symbol_record sr,
octave::symbol_record::context_id  context,
load_save_format  fmt,
bool  save_as_floats 
)

◆ dump_octave_core() [1/2]

◆ dump_octave_core() [2/2]

◆ err_file_open()

static OCTAVE_NORETURN void err_file_open ( const std::string fcn,
const std::string file 
)
static

Definition at line 130 of file load-save.cc.

References error(), fcn, and file.

Referenced by get_file_format(), and if().

◆ error()

else error ( "load: unable to determine file format of '%s'"  ,
orig_fname.  c_str() 
)

◆ find_file_to_load()

◆ Fload()

OCTAVE_EXPORT octave_value_list Fload ( const octave_value_list args,
int  nargout 
)

Definition at line 642 of file load-save.cc.

Referenced by octave::main_window::load_workspace_callback().

◆ for()

◆ Fsave()

OCTAVE_EXPORT octave_value_list Fsave ( const octave_value_list args,
int  nargout 
)

Definition at line 1612 of file load-save.cc.

Referenced by octave::main_window::save_workspace_callback().

◆ get_file_format() [1/2]

◆ get_file_format() [2/2]

static load_save_format get_file_format ( const std::string fname,
const std::string orig_fname,
bool use_zlib,
bool  quiet = false 
)
static

◆ glob_pattern_p()

static bool glob_pattern_p ( const std::string pattern)
static

Definition at line 882 of file load-save.cc.

References c, i, and pattern().

◆ if() [1/5]

if ( argc  ,
1 &&! argv.empty() &&argv.at(0) !  [1][1] = '-' 
)

Definition at line 654 of file load-save.cc.

References argv, i, and orig_fname.

◆ if() [2/5]

if ( orig_fname  = = "")

Definition at line 726 of file load-save.cc.

References argc, argv, i, orig_fname, and print_usage().

◆ if() [3/5]

if ( format  = LS_UNKNOWN)

Definition at line 775 of file load-save.cc.

References argc, argv, do_load(), err_file_open(), flt_fmt, fname, i, list_only, nargout(), orig_fname, retval, swap, and verbose.

◆ if() [4/5]

◆ if() [5/5]

if ( i  = =argc)

◆ install_loaded_variable()

◆ is_octave_data_file()

bool is_octave_data_file ( const std::string fname)

Definition at line 539 of file load-save.cc.

References fname, get_file_format(), LS_UNKNOWN, and use_zlib.

Referenced by octave::files_dock_widget::display_directory().

◆ matches_patterns()

static bool matches_patterns ( const string_vector patterns,
int  pat_idx,
int  num_pat,
const std::string name 
)
static

Definition at line 173 of file load-save.cc.

References i, name, and pattern().

Referenced by do_load().

◆ octave_finalize_hdf5()

void octave_finalize_hdf5 ( void  )

Definition at line 1263 of file load-save.cc.

◆ octave_prepare_hdf5()

void octave_prepare_hdf5 ( void  )

Definition at line 1255 of file load-save.cc.

◆ parse_save_options() [1/3]

static string_vector parse_save_options ( const string_vector argv,
load_save_format format,
bool append,
bool save_as_floats,
bool use_zlib 
)
static

◆ parse_save_options() [2/3]

static string_vector parse_save_options ( const std::string arg,
load_save_format format,
bool append,
bool save_as_floats,
bool use_zlib 
)
static

◆ parse_save_options() [3/3]

parse_save_options ( Vsave_default_options  ,
format  ,
append  ,
save_as_floats  ,
use_zlib   
)

◆ read_binary_file_header()

int read_binary_file_header ( std::istream &  is,
bool swap,
octave::mach_info::float_format flt_fmt,
bool  quiet 
)

◆ save_fields()

static size_t save_fields ( std::ostream &  os,
const octave_scalar_map m,
const std::string pattern,
load_save_format  fmt,
bool  save_as_floats 
)
static

◆ save_vars() [1/2]

static size_t save_vars ( std::ostream &  os,
const std::string pattern,
load_save_format  fmt,
bool  save_as_floats 
)
static

◆ save_vars() [2/2]

static void save_vars ( const string_vector argv,
int  argv_idx,
int  argc,
std::ostream &  os,
load_save_format  fmt,
bool  save_as_floats,
bool  write_header_info 
)
static

◆ write_header()

Variable Documentation

◆ append

◆ ar

in the file Octave saves all the variables in the current scope full variable names or pattern syntax can be used to specify the variables to save If the ar {file}. If no variables are specified then all variables found in the file will be loaded. As with ode{save}

Definition at line 642 of file load-save.cc.

◆ argc

◆ argv

◆ characters

write the output to stdout if nargout otherwise return the output in a character string able ode tem append Append to the destination instead of overwriting tem ascii Save a matrix in a text file without a header or any other information The matrix must be D and only the real part of any complex value is written to the file Numbers are stored in single precision format and separated by spaces Additional options for the and gzip can also be used to convert the files for backward compatibility This option is only available if Octave was built with a link to the zlib libraries end table The list of variables to save may use wildcard patterns containing the following special characters

Definition at line 1612 of file load-save.cc.

Referenced by PlainTextDecoder::decodeLine(), and HTMLDecoder::decodeLine().

◆ code

write the output to stdout if nargout otherwise return the output in a character string able ode tem append Append to the destination instead of overwriting tem ascii Save a matrix in a text file without a header or any other information The matrix must be D and only the real part of any complex value is written to the file Numbers are stored in single precision format and separated by spaces Additional options for the and gzip can also be used to convert the files for backward compatibility This option is only available if Octave was built with a link to the zlib libraries end table The list of variables to save may use wildcard patterns containing the following special match all characters except those specified by the pattern code {[a-zA-Z]} will match all lower and uppercase alphabetic characters. Wildcards may also be used in the field name specifications when using the @option{-struct} modifier (but not in the struct name itself). @end table Except when using the @sc{matlab} binary data file format or the @samp{-ascii} format

Definition at line 1612 of file load-save.cc.

◆ else

else
Initial value:
{
fname
Definition: load-save.cc:767
std::string tilde_expand(const std::string &name)
Definition: file-ops.cc:276
std::string orig_fname
Definition: load-save.cc:651
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
Definition: utils.cc:888

Definition at line 764 of file load-save.cc.

◆ flt_fmt

◆ fname

fname = find_file_to_load (fname, orig_fname)

Definition at line 767 of file load-save.cc.

Referenced by octave::jit_typeinfo::add_binary_fcmp(), octave::jit_typeinfo::add_binary_icmp(), octave::jit_typeinfo::add_binary_op(), octave::bp_table::add_breakpoint(), octave::bp_table::add_breakpoint_1(), octave::load_path::package_info::add_to_fcn_map(), bitop(), bitopx(), bitopxx(), octave::file_editor_tab::bp_info::bp_info(), octave::load_path::package_info::check_file_type(), check_gzip_magic(), do_history(), dump_octave_core(), extract_function(), Fdaspk(), Fdasrt(), Fdassl(), octave::load_path::files(), find_file_to_load(), octave::load_path::package_info::find_private_fcn(), find_private_file(), Flsode(), Fquad(), G__eigs__(), G__fltk_uigetfile__(), octave::get_fcn_files(), get_file_format(), octave::load_path::dir_info::get_file_list(), octave::get_user_code(), base_graphics_toolkit::gripe_if_tkit_invalid(), octave::main_window::handle_edit_mfile_request(), octave::file_editor::handle_file_name_changed(), if(), is_octave_data_file(), isolate_tilde_prefix(), mexCallMATLAB(), mexCallMATLABWithTrap(), mexErrMsgIdAndTxt(), mexIsLocked(), mexLock(), mexUnlock(), mexWarnMsgIdAndTxt(), octave::load_path::package_info::move_fcn_map(), octave_stat_wrapper(), octave::sys::dir_entry::read(), read_mat5_binary_element(), octave::bp_table::remove_all_breakpoints_in_file(), octave::bp_table::remove_breakpoint(), octave::bp_table::remove_breakpoint_1(), octave::load_path::package_info::remove_fcn_map(), octave::file_editor_tab::save_file_as(), octave::file_info::snarf_file(), octave::split_name_with_package(), and octave::ft_text_renderer::visit().

◆ i

int i = 1

Definition at line 650 of file load-save.cc.

Referenced by for(), glob_pattern_p(), if(), matches_patterns(), parse_save_options(), and save_vars().

◆ is

write the output to stdout if nargout is

Definition at line 1612 of file load-save.cc.

Referenced by octave_istrstream::bad(), octave_istrstream::clear(), octave::base_stream::clearerr(), octave::base_stream::do_gets(), octave::base_stream::do_oscanf(), octave::textscan::do_scan(), octave::base_stream::do_scanf(), octave::do_scanf_conv(), octave_istrstream::eof(), extract_keyword(), extract_num(), get_lines_and_columns(), get_mat_data_input_line(), octave::curl_transfer::init(), octave_istream::input_stream(), octave_istrstream::input_stream(), octave_fcn_inline::load_ascii(), octave_base_int_matrix< intNDArray< OCTAVE_INT_T > >::load_ascii(), octave_fcn_handle::load_ascii(), octave_struct::load_ascii(), octave_float_complex_matrix::load_ascii(), octave_cell::load_ascii(), octave_complex_matrix::load_ascii(), octave_char_matrix_str::load_ascii(), octave_base_int_scalar< OCTAVE_INT_T >::load_ascii(), octave_base_sparse< SparseComplexMatrix >::load_ascii(), octave_float_complex::load_ascii(), octave_complex::load_ascii(), octave_class::load_ascii(), octave_float_matrix::load_ascii(), octave_base_diag< DiagMatrix, Matrix >::load_ascii(), octave_lazy_index::load_ascii(), octave_bool_matrix::load_ascii(), octave_perm_matrix::load_ascii(), octave_matrix::load_ascii(), octave_bool::load_ascii(), octave_float_scalar::load_ascii(), octave_scalar::load_ascii(), octave_scalar_struct::load_ascii(), octave_range::load_ascii(), octave_value::load_ascii(), octave_fcn_inline::load_binary(), octave_float_complex_diag_matrix::load_binary(), octave_complex_diag_matrix::load_binary(), octave_float_diag_matrix::load_binary(), octave_base_int_matrix< intNDArray< OCTAVE_INT_T > >::load_binary(), octave_diag_matrix::load_binary(), octave_sparse_bool_matrix::load_binary(), octave_fcn_handle::load_binary(), octave_sparse_complex_matrix::load_binary(), octave_struct::load_binary(), octave_sparse_matrix::load_binary(), octave_float_complex_matrix::load_binary(), octave_cell::load_binary(), octave_complex_matrix::load_binary(), octave_char_matrix_str::load_binary(), octave_base_int_scalar< OCTAVE_INT_T >::load_binary(), octave_float_complex::load_binary(), octave_complex::load_binary(), octave_class::load_binary(), octave_float_matrix::load_binary(), octave_lazy_index::load_binary(), octave_bool_matrix::load_binary(), octave_perm_matrix::load_binary(), octave_matrix::load_binary(), octave_bool::load_binary(), octave_float_scalar::load_binary(), octave_scalar::load_binary(), octave_scalar_struct::load_binary(), octave_range::load_binary(), octave_value::load_binary(), octave::textscan::lookahead(), looks_like_mat_ascii_file(), octave::textscan::match_literal(), octave_read_complex(), octave_read_cx_fp_value(), octave_read_double(), octave_read_float(), octave_read_float_complex(), octave_read_fp_value(), octave_read_value(), octave::octave_scan(), octave::octave_scan_1(), operator>>(), octave::base_stream::oscanf(), parse_range_spec(), parse_save_options(), octave::url_transfer::put(), octave::curl_transfer::put(), octave_istrstream::rdbuf(), octave::stream::read(), read_binary_data(), read_binary_file_header(), read_cell_spec(), octave::textscan::read_double(), read_doubles(), octave::textscan_format_list::read_first_row(), read_floats(), octave::textscan::read_format_once(), read_hdf5_data(), read_inf_nan_na(), read_int(), read_mat5_binary_data(), read_mat5_binary_element(), read_mat5_binary_file_header(), read_mat5_integer_data(), read_mat5_tag(), read_mat_ascii_data(), read_mat_binary_data(), read_mat_file_header(), read_sparse_matrix(), read_text_data(), octave::textscan::read_until(), read_until_newline(), octave::textscan::scan_bracket(), octave::textscan::scan_caret(), octave::textscan::scan_complex(), octave::textscan::scan_cstring(), octave::textscan::scan_one(), octave::textscan::scan_qstring(), octave::textscan::scan_string(), octave::url_transfer::set_istream(), octave::curl_transfer::set_istream(), single_num(), skip_comments(), octave::textscan::skip_delim(), skip_preceeding_newline(), skip_until_newline(), octave::textscan::skip_whitespace(), octave::base_stream::skipl(), str2double1(), octave_istrstream::tell(), and write_mat5_tag().

◆ list_only

bool list_only = false

Definition at line 666 of file load-save.cc.

Referenced by do_load(), for(), and if().

◆ orig_fname

std::string orig_fname = ""

Definition at line 651 of file load-save.cc.

Referenced by do_load(), get_file_format(), and if().

◆ Otherwise

in the file Octave saves all the variables in the current scope Otherwise

Definition at line 1612 of file load-save.cc.

◆ ots

in the file Octave saves all the variables in the current scope full variable names or pattern syntax can be used to specify the variables to save If the ots {}

Definition at line 642 of file load-save.cc.

◆ ption

write the output to stdout if nargout otherwise return the output in a character string able ode tem append Append to the destination instead of overwriting tem ascii Save a matrix in a text file without a header or any other information The matrix must be D and only the real part of any complex value is written to the file Numbers are stored in single precision format and separated by spaces Additional options for the ption {-struct} modifier is used then the fields of the trong{scalar} struct are saved as if they were variables with the corresponding field names. The ption{-struct} option can be combined with specific field names ar{f1}

Definition at line 1612 of file load-save.cc.

◆ retval

return retval

Definition at line 876 of file load-save.cc.

Referenced by check_gzip_magic(), do_load(), get_file_format(), if(), and parse_save_options().

◆ save_as_floats

◆ swap

bool swap = false

Definition at line 738 of file load-save.cc.

Referenced by octave_sort< T >::binarysort(), axes::properties::calc_ticks_and_lims(), octave::convert_and_copy(), octave::convert_data(), octave::convert_ints(), dmsolve_extract(), do_load(), octave::opengl_renderer::draw_axes_boxes(), octave::tree_evaluator::echo(), extended_gcd(), RowVector::extract(), ColumnVector::extract(), FloatRowVector::extract(), FloatColumnVector::extract(), charMatrix::extract(), DiagMatrix::extract(), FloatDiagMatrix::extract(), ComplexRowVector::extract(), ComplexColumnVector::extract(), FloatComplexRowVector::extract(), FloatComplexColumnVector::extract(), ComplexDiagMatrix::extract(), FloatComplexDiagMatrix::extract(), Matrix::extract(), FloatMatrix::extract(), ComplexMatrix::extract(), FloatComplexMatrix::extract(), RowVector::fill(), ColumnVector::fill(), FloatRowVector::fill(), FloatColumnVector::fill(), ComplexRowVector::fill(), ComplexColumnVector::fill(), FloatComplexRowVector::fill(), FloatComplexColumnVector::fill(), Matrix::fill(), FloatMatrix::fill(), ComplexMatrix::fill(), FloatComplexMatrix::fill(), octave::stream::finalize_read(), get_file_format(), Gsymrcm(), H_heapify_min(), H_insert(), if(), octave_fcn_inline::load_binary(), octave_float_complex_diag_matrix::load_binary(), octave_complex_diag_matrix::load_binary(), octave_float_diag_matrix::load_binary(), octave_base_int_matrix< intNDArray< OCTAVE_INT_T > >::load_binary(), octave_diag_matrix::load_binary(), octave_sparse_bool_matrix::load_binary(), octave_fcn_handle::load_binary(), octave_sparse_complex_matrix::load_binary(), octave_struct::load_binary(), octave_sparse_matrix::load_binary(), octave_float_complex_matrix::load_binary(), octave_cell::load_binary(), octave_complex_matrix::load_binary(), octave_char_matrix_str::load_binary(), octave_base_int_scalar< OCTAVE_INT_T >::load_binary(), octave_float_complex::load_binary(), octave_complex::load_binary(), octave_class::load_binary(), octave_float_matrix::load_binary(), octave_lazy_index::load_binary(), octave_bool_matrix::load_binary(), octave_perm_matrix::load_binary(), octave_matrix::load_binary(), octave_float_scalar::load_binary(), octave_scalar::load_binary(), octave_scalar_struct::load_binary(), octave_range::load_binary(), octave_value::load_binary(), mk_tmp_hist_file(), octave_sort< T >::nth_element(), octave::octave_jit_paren_subsasgn_matrix_range(), octave::math::aepbalance< MT >::permuting_vector(), read_binary_data(), read_binary_file_header(), read_doubles(), read_floats(), read_int(), read_mat5_binary_data(), read_mat5_binary_element(), read_mat5_binary_file_header(), read_mat5_integer_data(), read_mat5_tag(), read_mat_binary_data(), read_mat_file_header(), simple_gcd(), Range::sort_internal(), octave::ft_text_renderer::text_to_pixels(), axes::properties::update_axes_layout(), figure::properties::update_paperunits(), and octave::stream::write().

◆ use_zlib

◆ var

write the output to stdout if nargout otherwise return the output in a character string able ode tem append Append to the destination instead of overwriting tem ascii Save a matrix in a text file without a header or any other information The matrix must be D and only the real part of any complex value is written to the file Numbers are stored in single precision format and separated by spaces Additional options for the and gzip can also be used to convert the files for backward compatibility This option is only available if Octave was built with a link to the zlib libraries end table The list of variables to save may use wildcard patterns containing the following special match all characters except those specified by var {list}. For example

Definition at line 1612 of file load-save.cc.

Referenced by dump_octave_core(), and save_vars().

◆ Vcrash_dumps_octave_core

bool Vcrash_dumps_octave_core = true
static

Definition at line 95 of file load-save.cc.

Referenced by dump_octave_core().

◆ verbose

◆ Voctave_core_file_limit

double Voctave_core_file_limit = -1.0
static

Definition at line 99 of file load-save.cc.

Referenced by dump_octave_core().

◆ Voctave_core_file_name

std::string Voctave_core_file_name = "octave-workspace"
static

Definition at line 102 of file load-save.cc.

Referenced by dump_octave_core().

◆ Voctave_core_file_options

std::string Voctave_core_file_options = "-binary"
static

Definition at line 109 of file load-save.cc.

Referenced by dump_octave_core().

◆ Vsave_default_options

std::string Vsave_default_options = "-text"
static

Definition at line 106 of file load-save.cc.

◆ Vsave_header_format_string

std::string Vsave_header_format_string = default_save_header_format ()
static

Definition at line 126 of file load-save.cc.

Referenced by write_header().