GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
Octave interface to the compression and uncompression libraries. More...
Namespaces | |
build_env | |
crypto | |
math | |
string | |
Octave string utility functions. | |
sys | |
Typedefs | |
typedef void | sig_handler (int) |
Enumerations | |
enum | { UNIFORM, FLAT, INTERP, TEXTURE } |
enum | { NONE, GOURAUD = 2 } |
enum | { X_AXIS, Y_AXIS, Z_AXIS } |
enum | select_flags { select_ignore_hittest = 0x01, select_last = 0x02 } |
Variables | |
bool | can_interrupt = false |
tree_evaluator * | current_evaluator |
static octave_mutex | event_hook_lock |
base_lexer * | LEXER |
int | pipe_handler_error_count = 0 |
static bool * | signals_caught = 0 |
bool | Vdebug_on_interrupt = false |
static bool | Vsighup_dumps_octave_core = true |
static bool | Vsigterm_dumps_octave_core = true |
Octave interface to the compression and uncompression libraries.
This was originally implemented as an m file which directly called bzip2 and gzip applications. This may look simpler but causes some issues (see bug #43431) because we have no control over the output file:
In addition, because system() does not have a method that allows passing a list of arguments, there is the issue of having to escape filenames.
A solution is to pipe file contents into the applications instead of filenames. However, that solution causes:
typedef void octave::sig_handler(int) |
Definition at line 43 of file sighandlers.h.
anonymous enum |
Enumerator | |
---|---|
UNIFORM | |
FLAT | |
INTERP | |
TEXTURE |
Definition at line 73 of file gl-render.cc.
anonymous enum |
Enumerator | |
---|---|
NONE | |
GOURAUD |
Definition at line 82 of file gl-render.cc.
anonymous enum |
Enumerator | |
---|---|
X_AXIS | |
Y_AXIS | |
Z_AXIS |
Definition at line 65 of file gl-render.cc.
enum octave::select_flags |
Enumerator | |
---|---|
select_ignore_hittest | |
select_last |
Definition at line 34 of file gl-select.h.
OCTINTERP_API interrupt_handler octave::catch_interrupts | ( | void | ) |
Definition at line 559 of file sighandlers.cc.
References octave::interrupt_handler::brk_handler, octave::interrupt_manager::init(), octave::interrupt_handler::int_handler, retval, set_signal_handler(), and sigint_handler().
Referenced by install_signal_handlers(), and recover_from_exception().
char* octave::do_completer_word_break_hook | ( | ) |
Definition at line 66 of file mach-info.cc.
Referenced by get_float_format().
OCTAVE_NORETURN OCTAVE_API void octave::err_del_index_out_of_range | ( | bool | is1d, |
octave_idx_type | idx, | ||
octave_idx_type | ext | ||
) |
Definition at line 98 of file lo-array-errwarn.cc.
References error_id_index_out_of_bounds.
Referenced by Sparse< T >::delete_elements(), and Array< T >::delete_elements().
OCTAVE_NORETURN OCTAVE_API void octave::err_index_out_of_range | ( | int | nd, |
int | dim, | ||
octave_idx_type | idx, | ||
octave_idx_type | ext | ||
) |
Definition at line 276 of file lo-array-errwarn.cc.
References e.
Referenced by DiagArray2< T >::check_idx(), Range::checkelem(), Array< T >::checkelem(), Array< T >::column(), compute_index(), Range::index(), Sparse< T >::index(), Array< T >::index(), Array< T >::linear_slice(), octave_jit_gindex_range(), Array< T >::page(), and sub2ind().
OCTAVE_NORETURN OCTAVE_API void octave::err_index_out_of_range | ( | int | nd, |
int | dim, | ||
octave_idx_type | idx, | ||
octave_idx_type | ext, | ||
const dim_vector & | d | ||
) |
Definition at line 292 of file lo-array-errwarn.cc.
References e.
OCTAVE_NORETURN OCTAVE_API void octave::err_invalid_index | ( | const std::string & | idx, |
octave_idx_type | nd, | ||
octave_idx_type | dim, | ||
const std::string & | |||
) |
Definition at line 195 of file lo-array-errwarn.cc.
References e.
Referenced by octave_base_matrix< MT >::assign(), idx_vector::idx_vector_rep::checkelem(), idx_vector::idx_mask_rep::checkelem(), Array< T >::checkelem(), compute_index(), convert_index(), err_invalid_index(), idx_vector::idx_range_rep::idx_range_rep(), idx_vector::idx_scalar_rep::idx_scalar_rep(), idx_vector::idx_vector_rep::idx_vector_rep(), octave_sparse_matrix::index_vector(), octave_base_value::index_vector(), and octave_jit_ginvalid_index().
OCTAVE_NORETURN OCTAVE_API void octave::err_invalid_index | ( | octave_idx_type | n, |
octave_idx_type | nd, | ||
octave_idx_type | dim, | ||
const std::string & | var | ||
) |
Definition at line 204 of file lo-array-errwarn.cc.
References err_invalid_index(), and var.
OCTAVE_NORETURN OCTAVE_API void octave::err_invalid_index | ( | double | n, |
octave_idx_type | nd, | ||
octave_idx_type | dim, | ||
const std::string & | var | ||
) |
Definition at line 213 of file lo-array-errwarn.cc.
References err_invalid_index(), and var.
OCTAVE_NORETURN OCTAVE_API void octave::err_invalid_resize | ( | void | ) |
Definition at line 306 of file lo-array-errwarn.cc.
Referenced by Array< T >::resize(), Sparse< T >::resize1(), Array< T >::resize1(), and Array< T >::resize2().
OCTAVE_NORETURN OCTAVE_API void octave::err_nan_to_character_conversion | ( | void | ) |
OCTAVE_NORETURN OCTAVE_API void octave::err_nan_to_logical_conversion | ( | void | ) |
Definition at line 47 of file lo-array-errwarn.cc.
Referenced by octave_sparse_matrix::bool_array_value(), octave_float_complex_matrix::bool_array_value(), octave_complex_matrix::bool_array_value(), octave_float_complex::bool_array_value(), octave_complex::bool_array_value(), octave_float_matrix::bool_array_value(), octave_matrix::bool_array_value(), octave_scalar::bool_array_value(), octave_float_scalar::bool_array_value(), octave_range::bool_array_value(), octave_float_complex::bool_value(), octave_complex::bool_value(), octave_scalar::bool_value(), octave_float_scalar::bool_value(), octave_base_scalar< ST >::is_true(), octave_base_sparse< T >::is_true(), octave_base_matrix< MT >::is_true(), jit_typeinfo::jit_typeinfo(), oct_unop_not(), ComplexNDArray::operator!(), FloatComplexNDArray::operator!(), FloatNDArray::operator!(), NDArray::operator!(), SparseMatrix::operator!(), SparseComplexMatrix::operator!(), octave_sparse_complex_matrix::sparse_bool_matrix_value(), and octave_sparse_matrix::sparse_bool_matrix_value().
OCTAVE_NORETURN OCTAVE_API void octave::err_nonconformant | ( | const char * | op, |
octave_idx_type | op1_len, | ||
octave_idx_type | op2_len | ||
) |
Definition at line 61 of file lo-array-errwarn.cc.
References error_id_nonconformant_args.
Referenced by Sparse< T >::assign(), Array< T >::assign(), atan2(), binmap(), do_add_dm_sm(), do_add_sm_dm(), do_extended_gcd(), do_mm_binary_op(), do_mm_inplace_op(), do_mul_dm_sm(), do_mul_sm_dm(), do_sub_dm_sm(), do_sub_sm_dm(), elem_xpow(), Fbalance(), gepbalance< T >::init(), max(), min(), mx_div_conform(), mx_leftdiv_conform(), octinternal_do_mul_pm_sm(), octinternal_do_mul_sm_pm(), operator*(), ComplexRowVector::operator+=(), ComplexColumnVector::operator+=(), FloatComplexRowVector::operator+=(), FloatComplexColumnVector::operator+=(), ComplexDiagMatrix::operator+=(), FloatComplexDiagMatrix::operator+=(), Matrix::operator+=(), FloatMatrix::operator+=(), ComplexMatrix::operator+=(), FloatComplexMatrix::operator+=(), ComplexRowVector::operator-=(), ComplexColumnVector::operator-=(), FloatComplexRowVector::operator-=(), FloatComplexColumnVector::operator-=(), Matrix::operator-=(), FloatMatrix::operator-=(), ComplexMatrix::operator-=(), FloatComplexMatrix::operator-=(), plus_or_minus(), product(), quotient(), and xgemm().
OCTAVE_NORETURN OCTAVE_API void octave::err_nonconformant | ( | const char * | op, |
octave_idx_type | op1_nr, | ||
octave_idx_type | op1_nc, | ||
octave_idx_type | op2_nr, | ||
octave_idx_type | op2_nc | ||
) |
Definition at line 72 of file lo-array-errwarn.cc.
References error_id_nonconformant_args.
OCTAVE_NORETURN OCTAVE_API void octave::err_nonconformant | ( | const char * | op, |
const dim_vector & | op1_dims, | ||
const dim_vector & | op2_dims | ||
) |
Definition at line 84 of file lo-array-errwarn.cc.
References error_id_nonconformant_args, dim_vector::str(), and string.
|
static |
Definition at line 420 of file sighandlers.cc.
References my_friendly_exit(), and octave_strsignal_wrapper().
Referenced by install_signal_handlers().
|
static |
Definition at line 76 of file mach-info.cc.
References octave::equiv::d, d1mach(), equiv_compare(), F77_FUNC(), octave::mach_info::flt_fmt_ieee_big_endian, octave::mach_info::flt_fmt_ieee_little_endian, octave::mach_info::flt_fmt_unknown, octave::float_params::fp_fmt, INIT_FLT_PAR, and retval.
OCTINTERP_API void octave::gl2ps_print | ( | const graphics_object & | fig, |
const std::string & | stream, | ||
const std::string & | term | ||
) |
Definition at line 799 of file gl2ps-print.cc.
References action_container::add_fcn(), err_disabled_feature(), error(), frame, octave_popen(), safe_fclose(), and string.
Referenced by G__osmesa_print__(), and QtHandles::Canvas::print().
|
static |
Definition at line 713 of file gl-render.cc.
References string.
Referenced by octave::opengl_renderer::draw_figure().
OCTINTERP_API interrupt_handler octave::ignore_interrupts | ( | void | ) |
Definition at line 572 of file sighandlers.cc.
References octave::interrupt_handler::brk_handler, octave::interrupt_manager::init(), octave::interrupt_handler::int_handler, retval, and set_signal_handler().
Referenced by do_edit_history(), octave_kbhit(), and signal_handler().
OCTINTERP_API void octave::install_signal_handlers | ( | void | ) |
Definition at line 604 of file sighandlers.cc.
References catch_interrupts(), generic_sig_handler(), octave_num_signals(), set_signal_handler(), sig_hup_handler(), sig_term_handler(), sigchld_handler(), and sigpipe_handler().
Referenced by main().
bool octave::is_keyword | ( | const std::string & | s | ) |
Definition at line 4529 of file lex.cc.
References octave_kw_hash::in_word_set().
Referenced by if(), octave::base_parser::make_assign_op(), read_mat_ascii_data(), and symbol_exist().
base_text_renderer * octave::make_ft_text_renderer | ( | void | ) |
Definition at line 1378 of file ft-text-renderer.cc.
Referenced by make_text_renderer().
|
static |
Definition at line 683 of file sighandlers.cc.
References m, and set_sig_struct_field().
Referenced by FSIG().
|
static |
Definition at line 364 of file sighandlers.cc.
References dump_octave_core(), octave_raise_wrapper(), save_vars(), set_signal_handler(), and sysdep_cleanup().
Referenced by generic_sig_handler(), and user_abort().
Definition at line 230 of file url-transfer.cc.
Referenced by octave::curl_transfer::init().
OCTINTERP_API interrupt_handler octave::set_interrupt_handler | ( | const volatile interrupt_handler & | h, |
bool | restart_syscalls | ||
) |
Definition at line 585 of file sighandlers.cc.
References octave::interrupt_handler::brk_handler, octave::interrupt_manager::init(), octave::interrupt_handler::int_handler, retval, and set_signal_handler().
Referenced by do_edit_history(), octave_kbhit(), and signal_handler().
|
static |
Definition at line 672 of file sighandlers.cc.
References octave_scalar_map::assign(), octave_get_sig_number(), and octave::math::signum().
Referenced by make_sig_struct().
OCTINTERP_API sig_handler * octave::set_signal_handler | ( | int | sig, |
sig_handler * | handler, | ||
bool | restart_syscalls | ||
) |
Definition at line 406 of file sighandlers.cc.
References octave_set_signal_handler_internal().
Referenced by catch_interrupts(), ignore_interrupts(), install_signal_handlers(), my_friendly_exit(), and set_interrupt_handler().
OCTINTERP_API sig_handler * octave::set_signal_handler | ( | const char * | signame, |
sig_handler * | handler, | ||
bool | restart_syscalls | ||
) |
Definition at line 412 of file sighandlers.cc.
References octave_set_signal_handler_by_name().
|
static |
Definition at line 451 of file sighandlers.cc.
References clean_up_and_exit(), and dump_octave_core().
Referenced by install_signal_handlers().
|
static |
Definition at line 460 of file sighandlers.cc.
References clean_up_and_exit(), and dump_octave_core().
Referenced by install_signal_handlers().
|
static |
Definition at line 428 of file sighandlers.cc.
References octave_signal_caught.
Referenced by install_signal_handlers().
|
static |
Definition at line 540 of file sighandlers.cc.
References octave_strsignal_wrapper(), and octave::interrupt_manager::user_abort().
Referenced by catch_interrupts().
OCTINTERP_API void octave::signal_handler | ( | void | ) |
Definition at line 321 of file sighandlers.cc.
References context, ignore_interrupts(), octave_block_child(), octave_get_sig_number(), octave_num_signals(), octave_unblock_child(), octave::child_list::reap(), set_interrupt_handler(), and octave::child_list::wait().
|
static |
Definition at line 546 of file sighandlers.cc.
References octave_interrupt_state, and octave_signal_caught.
Referenced by install_signal_handlers().
|
static |
Definition at line 122 of file mach-info.cc.
Definition at line 241 of file url-transfer.cc.
Referenced by octave::curl_transfer::get_fileinfo().
|
static |
Definition at line 483 of file sighandlers.cc.
References octave::tree_evaluator::debug_mode, bp_table::have_breakpoints(), octave::interrupt_manager::jump_to_enclosing_context(), my_friendly_exit(), octave_debug_on_interrupt_state, octave_initialized, octave_interrupt_immediately, octave_interrupt_state, octave_signal_caught, and Vdebugging.
Referenced by octave::posix_interrupt_manager::do_user_abort().
OCTAVE_API void octave::warn_singular_matrix | ( | double | rcond | ) |
Definition at line 314 of file lo-array-errwarn.cc.
References warning_id_nearly_singular_matrix, and warning_id_singular_matrix.
Referenced by SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), SparseMatrix::factorize(), SparseComplexMatrix::factorize(), Finv(), Matrix::fsolve(), FloatMatrix::fsolve(), ComplexMatrix::fsolve(), FloatComplexMatrix::fsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), Matrix::lssolve(), FloatMatrix::lssolve(), ComplexMatrix::lssolve(), FloatComplexMatrix::lssolve(), Matrix::ltsolve(), FloatMatrix::ltsolve(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), ComplexMatrix::ltsolve(), FloatComplexMatrix::ltsolve(), solve_singularity_warning(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), Matrix::utsolve(), FloatMatrix::utsolve(), SparseComplexMatrix::utsolve(), SparseMatrix::utsolve(), ComplexMatrix::utsolve(), and FloatComplexMatrix::utsolve().
Definition at line 222 of file url-transfer.cc.
Referenced by octave::curl_transfer::get_fileinfo(), octave::curl_transfer::init(), and octave::curl_transfer::pwd().
string_vector octave::xzip | ( | const Array< std::string > & | source_patterns, |
const std::function< std::string(const std::string &)> & | mk_dest_path | ||
) |
Definition at line 428 of file gzip.cc.
References octave::sys::file_ops::concat(), fs, glob_match::glob(), octave::sys::base_file_stat::is_dir(), octave::sys::base_file_stat::is_reg(), Array< T >::numel(), pattern(), octave::sys::dir_entry::read(), string, octave::sys::file_ops::tilde_expand(), and octave::sys::unlink().
string_vector octave::xzip | ( | const Array< std::string > & | source_patterns | ) |
string_vector octave::xzip | ( | const Array< std::string > & | source_patterns, |
const std::string & | out_dir | ||
) |
Definition at line 502 of file gzip.cc.
References octave::sys::env::base_pathname(), octave::sys::file_ops::concat(), octave::sys::mkdir(), and string.
|
static |
Definition at line 522 of file gzip.cc.
References octave_value_list::length(), nargin, octave_value(), print_usage(), and string.
OCTINTERP_API bool octave::can_interrupt = false |
Definition at line 67 of file sighandlers.cc.
Referenced by recover_from_exception().
tree_evaluator* octave::current_evaluator |
|
static |
Definition at line 64 of file cmd-edit.cc.
base_lexer* octave::LEXER |
Definition at line 139 of file oct-parse.cc.
int octave::pipe_handler_error_count = 0 |
Definition at line 64 of file sighandlers.cc.
Referenced by octave_base_reader::octave_gets().
|
static |
Definition at line 81 of file sighandlers.cc.
OCTINTERP_API bool octave::Vdebug_on_interrupt = false |
Definition at line 70 of file sighandlers.cc.
Referenced by bp_table::dbclear_all_signals(), bp_table::dbstop_process_map_args(), tree_jit::enabled(), and parse_dbfunction_params().
|
static |
Definition at line 75 of file sighandlers.cc.
|
static |
Definition at line 78 of file sighandlers.cc.