#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"
Go to the source code of this file.
Typedefs | |
using | format = LS_UNKNOWN |
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 () |
Definition at line 1616 of file load-save.cc.
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.
|
static |
Definition at line 226 of file load-save.cc.
References file, fname, and retval.
Referenced by get_file_format().
|
static |
Definition at line 112 of file load-save.cc.
References octave::sys::env::get_host_name(), octave::sys::env::get_user_name(), OCTAVE_VERSION, and string.
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 | ||
) |
Definition at line 357 of file load-save.cc.
References argc, argv, octave_scalar_map::assign(), octave_value::columns(), err_unrecognized_data_fmt(), error(), flt_fmt, install_loaded_variable(), octave_value::is_defined(), left, string_vector::list_in_columns(), list_only, LS_BINARY, LS_HDF5, LS_MAT5_BINARY, LS_MAT7_BINARY, LS_MAT_ASCII, LS_MAT_BINARY, LS_TEXT, matches_patterns(), name, nargout(), octave_scalar_map::nfields(), octave_stdout, orig_fname, read_binary_data(), read_hdf5_data(), read_mat5_binary_element(), read_mat_ascii_data(), read_mat_binary_data(), read_text_data(), retval, right, octave_value::rows(), string, swap, octave_value::type_name(), verbose, and warning().
Referenced by if().
|
static |
Definition at line 921 of file load-save.cc.
References err_unrecognized_data_fmt(), LS_BINARY, LS_HDF5, LS_MAT5_BINARY, LS_MAT7_BINARY, LS_MAT_ASCII, LS_MAT_ASCII_LONG, LS_MAT_ASCII_TABS, LS_MAT_BINARY, LS_TEXT, name, load_save_format::opts, os, save_as_floats, save_binary_data(), save_hdf5_data(), save_mat5_binary_element(), save_mat_ascii_data(), save_mat_binary_data(), save_text_data(), load_save_format::type, and warning().
Referenced by do_save(), dump_octave_core(), save_fields(), and save_vars().
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 | ||
) |
Definition at line 968 of file load-save.cc.
References octave::context, do_save(), octave::symbol_record::is_global(), octave::symbol_record::name(), name, os, save_as_floats, string, val, and octave::symbol_record::varval().
|
static |
Definition at line 1336 of file load-save.cc.
References octave::__get_symbol_table__(), octave::symbol_scope::all_variables(), octave::context, octave::symbol_scope::current_context(), do_save(), fname, message(), name, os, save_as_floats, string, octave::symbol_table::top_scope(), val, var, vars, Voctave_core_file_limit, and write_header().
Referenced by dump_octave_core(), and octave::my_friendly_exit().
void dump_octave_core | ( | void | ) |
Definition at line 1380 of file load-save.cc.
References append, defined, dump_octave_core(), file, fname, LS_BINARY, LS_HDF5, LS_MAT5_BINARY, LS_MAT7_BINARY, LS_MAT_BINARY, message(), mode, parse_save_options(), save_as_floats, octave::math::trunc(), use_zlib, Vcrash_dumps_octave_core, Voctave_core_file_name, Voctave_core_file_options, and warning().
|
static |
Definition at line 130 of file load-save.cc.
References error(), fcn, and file.
Referenced by get_file_format(), and if().
Referenced by do_load(), err_file_open(), find_file_to_load(), if(), parse_save_options(), read_binary_file_header(), and save_vars().
|
static |
Definition at line 505 of file load-save.cc.
References octave::sys::file_ops::dir_sep_chars(), error(), octave::sys::base_file_stat::exists(), find_data_file_in_load_path(), fname, fs, octave::sys::base_file_stat::is_reg(), name, and string.
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 | ( | ) |
Definition at line 669 of file load-save.cc.
References argv, err_disabled_feature(), i, list_only, LS_BINARY, LS_HDF5, LS_MAT5_BINARY, LS_MAT7_BINARY, LS_MAT_ASCII, LS_MAT_BINARY, LS_TEXT, verbose, and warning().
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().
|
static |
Definition at line 244 of file load-save.cc.
References err, extract_keyword(), file, filename, flt_fmt, octave::mach_info::flt_fmt_unknown, imag(), looks_like_mat_ascii_file(), LS_BINARY, LS_MAT5_BINARY, LS_MAT_ASCII, LS_MAT_BINARY, LS_TEXT, LS_UNKNOWN, read_binary_file_header(), read_mat5_binary_file_header(), read_mat_file_header(), retval, string, and swap.
Referenced by get_file_format(), and is_octave_data_file().
|
static |
Definition at line 311 of file load-save.cc.
References check_gzip_magic(), err_file_open(), file, fname, get_file_format(), LS_HDF5, LS_UNKNOWN, orig_fname, retval, and use_zlib.
|
static |
Definition at line 882 of file load-save.cc.
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 | ( | orig_fname | = = "" | ) |
Definition at line 726 of file load-save.cc.
References argc, argv, i, orig_fname, and print_usage().
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.
else if | ( | format ! | = LS_UNKNOWN | ) |
Definition at line 794 of file load-save.cc.
References argc, argv, do_load(), err_file_open(), error(), file, flt_fmt, fname, i, list_only, LS_BINARY, LS_MAT5_BINARY, LS_MAT7_BINARY, mode, nargout(), orig_fname, read_binary_file_header(), read_mat5_binary_file_header(), retval, swap, use_zlib, and verbose.
|
static |
Definition at line 144 of file load-save.cc.
References octave::__get_symbol_table__(), octave::symbol_scope::assign(), octave::symbol_record::bind_fwd_rep(), octave::symbol_scope::find_symbol(), octave::symbol_scope::get_rep(), octave::symbol_table::global_scope(), octave::symbol_record::is_global(), name, octave::symbol_table::require_current_scope(), and val.
Referenced by do_load().
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().
|
static |
void octave_finalize_hdf5 | ( | void | ) |
Definition at line 1263 of file load-save.cc.
void octave_prepare_hdf5 | ( | void | ) |
Definition at line 1255 of file load-save.cc.
|
static |
Definition at line 1038 of file load-save.cc.
References append, argc, argv, err_disabled_feature(), error(), i, LS_BINARY, LS_HDF5, LS_MAT5_BINARY, LS_MAT7_BINARY, LS_MAT_ASCII, LS_MAT_ASCII_LONG, LS_MAT_ASCII_TABS, LS_MAT_BINARY, LS_TEXT, Array< T >::numel(), retval, save_as_floats, use_zlib, and warning().
Referenced by dump_octave_core(), and parse_save_options().
|
static |
Definition at line 1156 of file load-save.cc.
References string_vector::append(), append, arg, argv, is, parse_save_options(), save_as_floats, str, string, and 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 | ||
) |
Definition at line 188 of file load-save.cc.
References error(), flt_fmt, octave::mach_info::flt_fmt_unknown, is, mopt_digit_to_float_format(), octave::string::strncmp(), swap, tmp, and octave::mach_info::words_big_endian().
Referenced by get_file_format(), and if().
|
static |
Definition at line 988 of file load-save.cc.
References octave_scalar_map::begin(), octave_scalar_map::contents(), do_save(), octave_scalar_map::end(), octave_scalar_map::key(), glob_match::match(), os, pattern(), save_as_floats, and string.
Referenced by save_vars().
|
static |
Definition at line 1016 of file load-save.cc.
References octave::__require_current_scope__(), octave::context, octave::symbol_scope::current_context(), do_save(), octave::symbol_scope::glob(), os, pattern(), save_as_floats, var, and vars.
Referenced by octave::my_friendly_exit(), and save_vars().
|
static |
Definition at line 1271 of file load-save.cc.
References octave::__get_current_scope__(), argc, argv, error(), i, octave::symbol_scope::is_variable(), octave_value::isstruct(), octave_value::numel(), os, save_as_floats, save_fields(), save_vars(), octave_value::scalar_map_value(), string, octave::symbol_scope::varval(), warning(), and write_header().
void write_header | ( | std::ostream & | os, |
load_save_format | format | ||
) |
Definition at line 1173 of file load-save.cc.
References hdf5_fstreambase::file_id, float_format_to_mopt_digit(), flt_fmt, LS_BINARY, LS_HDF5, LS_MAT5_BINARY, LS_MAT7_BINARY, LS_TEXT, min(), octave::mach_info::native_float_format(), now, OCTAVE_VERSION, os, string, tmp, Vsave_header_format_string, octave::mach_info::words_big_endian(), and octave::stream::write().
Referenced by dump_octave_core(), and save_vars().
Definition at line 1618 of file load-save.cc.
Referenced by FilterChain::addFilter(), QtHandles::Canvas::annotation_callback(), octave::comment_list::append(), dump_octave_core(), octave::tm_const::init(), and parse_save_options().
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.
int argc = args.length () + 1 |
Definition at line 646 of file load-save.cc.
Referenced by do_load(), do_who(), Fformat(), if(), main(), maybe_missing_function_hook(), octave_getopt_long_wrapper(), octave_main(), parse_save_options(), read_hdf5_data(), save_vars(), and set_format_style().
string_vector argv = args.make_argv ("load") |
Definition at line 648 of file load-save.cc.
Referenced by do_load(), do_who(), octave::tree_evaluator::echo(), octave::sys::execvp(), Fformat(), for(), if(), main(), octave_value_list::make_argv(), maybe_missing_function_hook(), octave_exec(), octave_execv_wrapper(), octave_execvp_wrapper(), octave_getopt_long_wrapper(), octave_main(), parse_save_options(), octave::sys::popen2(), read_hdf5_data(), save_vars(), and set_format_style().
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().
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 |
Definition at line 764 of file load-save.cc.
Definition at line 736 of file load-save.cc.
Referenced by octave::convert_data(), do_fwrite(), do_load(), octave::base_stream::float_format(), octave::mach_info::float_format_as_string(), float_format_to_mopt_digit(), get_file_format(), if(), mopt_digit_to_float_format(), pr_any_float(), read_binary_file_header(), read_mat5_binary_data(), read_mat5_binary_element(), read_mat_binary_data(), save_mat_binary_data(), octave_float_complex_matrix::write(), octave_char_matrix_str::write(), octave_complex_matrix::write(), octave_float_complex::write(), octave_complex::write(), octave_float_matrix::write(), octave_base_diag< DiagMatrix, Matrix >::write(), octave_lazy_index::write(), octave_bool_matrix::write(), octave_perm_matrix::write(), octave_matrix::write(), octave_bool::write(), octave_float_scalar::write(), octave_scalar::write(), octave::stream::write(), octave_range::write(), OCTAVE_VALUE_INT_MATRIX_T::write(), OCTAVE_VALUE_INT_SCALAR_T::write(), and write_header().
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().
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().
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().
Definition at line 666 of file load-save.cc.
std::string orig_fname = "" |
Definition at line 651 of file load-save.cc.
Referenced by do_load(), get_file_format(), and if().
in the file Octave saves all the variables in the current scope Otherwise |
Definition at line 1612 of file load-save.cc.
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.
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.
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().
Definition at line 1617 of file load-save.cc.
Referenced by add_hdf5_data(), do_save(), dump_octave_core(), parse_save_options(), octave_complex_diag_matrix::save_binary(), octave_diag_matrix::save_binary(), octave_fcn_handle::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_struct::save_binary(), octave_sparse_matrix::save_binary(), octave_cell::save_binary(), octave_complex_matrix::save_binary(), octave_class::save_binary(), octave_lazy_index::save_binary(), octave_matrix::save_binary(), octave_scalar_struct::save_binary(), octave_value::save_binary(), save_binary_data(), save_fields(), octave_fcn_handle::save_hdf5(), octave_struct::save_hdf5(), octave_sparse_complex_matrix::save_hdf5(), octave_sparse_matrix::save_hdf5(), octave_cell::save_hdf5(), octave_complex_matrix::save_hdf5(), octave_class::save_hdf5(), octave_matrix::save_hdf5(), octave_scalar_struct::save_hdf5(), octave_value::save_hdf5(), save_hdf5_data(), save_mat5_array_length(), save_mat5_binary_element(), save_mat5_element_length(), save_vars(), write_mat5_array(), and write_mat5_cell_array().
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().
Definition at line 769 of file load-save.cc.
Referenced by dump_octave_core(), get_file_format(), if(), is_octave_data_file(), normalize_fopen_mode(), and parse_save_options().
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().
|
static |
Definition at line 95 of file load-save.cc.
Referenced by dump_octave_core().
Definition at line 667 of file load-save.cc.
Referenced by do_load(), do_who(), for(), octave::call_stack::goto_frame(), octave::call_stack::goto_frame_relative(), and if().
|
static |
Definition at line 99 of file load-save.cc.
Referenced by dump_octave_core().
|
static |
Definition at line 102 of file load-save.cc.
Referenced by dump_octave_core().
|
static |
Definition at line 109 of file load-save.cc.
Referenced by dump_octave_core().
|
static |
Definition at line 106 of file load-save.cc.
|
static |
Definition at line 126 of file load-save.cc.
Referenced by write_header().