GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
ov-usr-fcn.cc File Reference
#include <sstream>
#include "file-info.h"
#include "file-stat.h"
#include "str-vec.h"
#include "builtin-defun-decls.h"
#include "call-stack.h"
#include "defaults.h"
#include "Cell.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "input.h"
#include "ovl.h"
#include "ov-usr-fcn.h"
#include "ov.h"
#include "pager.h"
#include "pt-eval.h"
#include "pt-jit.h"
#include "pt-jump.h"
#include "pt-misc.h"
#include "pt-pr-code.h"
#include "pt-stmt.h"
#include "pt-walk.h"
#include "symtab.h"
#include "interpreter-private.h"
#include "interpreter.h"
#include "unwind-prot.h"
#include "utils.h"
#include "parse.h"
#include "profiler.h"
#include "variables.h"
#include "ov-fcn-handle.h"
Include dependency graph for ov-usr-fcn.cc:

Go to the source code of this file.

Functions

OCTAVE_EXPORT octave_value_list Fnargin (octave::interpreter &interp, const octave_value_list &args, int) return the number of arguments passed to the function. At the top level
 
OCTAVE_EXPORT octave_value_list Foptimize_subsasgn_calls (const octave_value_list &args, int nargout) Octave will attempt to eliminate the redundant copying when calling the ode
 
OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function xample nargout (@histc)
 

Variables

OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument ar {fcn}---a function name or handle---return the declared number of arguments that the function can accept. If the last argument to ar{fcn} is ar{varargin} the returned value is negative. For example
 
method of a user defined When called from inside a function with the code {"local"} option
 
OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function ode
 
OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function t = f () nd example oindent will cause ode{nargout} to return 2 inside the function ode{f}. In the second usage
 
static bool Voptimize_subsasgn_calls = true
 

Function Documentation

◆ Fnargin()

OCTAVE_EXPORT octave_value_list Fnargin ( octave::interpreter interp,
const octave_value_list args,
int   
)

◆ Foptimize_subsasgn_calls()

OCTAVE_EXPORT octave_value_list Foptimize_subsasgn_calls ( const octave_value_list args,
int  nargout 
)

Definition at line 1085 of file ov-usr-fcn.cc.

References SET_INTERNAL_VARIABLE.

◆ nargout()

OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function xample nargout ( histc)

Definition at line 997 of file ov-usr-fcn.cc.

Referenced by octave_user_function::bind_automatic_vars(), octave_mex_function::call(), octave_builtin::call(), octave_user_script::call(), octave_fcn_handle::call(), octave_user_function::call(), call_mex(), class_fevalStatic(), octave::tree_evaluator::convert_return_list_to_const_vector(), defun_isargout(), dmperm_internal(), do_bessel(), do_gsvd(), do_history(), do_load(), do_minmax_body(), do_minmax_red_op(), do_minmax_red_op< boolNDArray >(), do_minmax_red_op< charNDArray >(), octave::environment::editor(), octave::tree_evaluator::evaluate(), octave::tree_evaluator::evaluate_n(), octave::environment::exec_path(), cdef_method::execute(), F__ftp_dir__(), F__ftp_mput__(), F__magick_read__(), F__profiler_data__(), Fbalance(), Fbesselj(), Fdaspk(), Fdasrt(), Fdassl(), Fdet(), Fdiary(), FEDITOR(), Feig(), Fformat(), Ffrewind(), Fgcd(), Fgsvd(), Fhess(), find_nonzero_elem_idx(), Finv(), Fjit_failcnt(), Flsode(), Fmin(), for(), Fqz(), Fregexp(), Fschur(), Fspparms(), Fsqrtm(), Fsvd(), Ftoc(), G__eigs__(), Gamd(), Gccolamd(), Gchol(), Gcolamd(), Gconvhulln(), Gdmperm(), get_output_list(), Gqr(), gsvd_type(), Gsymbfact(), if(), octave::environment::image_path(), octave::tree_evaluator::isargout(), octave::tree_evaluator::max_recursion_depth(), octave::call_stack::max_stack_depth(), cdef_meta_object::meta_subsref(), mexCallMATLAB(), mexCallMATLABWithTrap(), octcellregexp(), octregexp(), octave::tree_evaluator::PS4(), qr_type(), read_images(), read_indexed_images(), octave::tree_evaluator::silent_functions(), octave::tree_evaluator::string_fill_char(), octave_struct::subsref(), octave_cell::subsref(), octave_fcn_handle::subsref(), octave_class::subsref(), octave_scalar_struct::subsref(), cdef_object::subsref(), octave_classdef::subsref(), subsref(), svd_type(), octave::tree_evaluator::visit_constant(), octave::tree_evaluator::visit_funcall(), octave::tree_evaluator::visit_identifier(), and octave::tree_evaluator::visit_index_expression().

Variable Documentation

◆ ar

OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument ar {fcn}---a function name or handle---return the declared number of arguments that the function can accept. If the last argument to ar{fcn} is ar{varargin} the returned value is negative. For example

Definition at line 887 of file ov-usr-fcn.cc.

◆ code

method of a user defined When called from inside a function with the code {"local"} option

Definition at line 1085 of file ov-usr-fcn.cc.

◆ ode

OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function ode

Definition at line 887 of file ov-usr-fcn.cc.

◆ t

OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function t = f () nd example oindent will cause ode{nargout} to return 2 inside the function ode{f}. In the second usage

Definition at line 997 of file ov-usr-fcn.cc.

Referenced by __lo_ieee_float_is_NA(), __lo_ieee_is_NA(), __lo_ieee_is_old_NA(), norm_accumulator_p< R >::accum(), norm_accumulator_mp< R >::accum(), norm_accumulator_2< R >::accum(), octave::profiler::add_current_time(), add_hdf5_data(), octave::load_path::package_info::add_to_fcn_map(), octave::tree_index_expression::append(), octave::comment_list::append(), octave::base_lexer::comment_buffer::append(), mxArray::calloc(), mex::calloc(), mex::calloc_unmarked(), cpolar(), daspk_user_function(), daspk_user_jacobian(), dasrt_user_cf(), dasrt_user_f(), dasrt_user_j(), dassl_user_function(), dassl_user_jacobian(), ddasrt_f(), ddasrt_g(), octave_user_function::define_ret_list(), octave_value::do_non_const_unary_op(), do_unary_op(), octave::math::ellipj(), octave::profiler::enter< T >::enter(), erfcx_y100(), err_invalid_index_type(), octave::get_fcn_files(), QtHandles::ObjectProxy::get_pixels(), octave::tree_index_expression::get_struct_index(), RegExpFilter::HotSpot::HotSpot(), octave::sys::base_tm::init(), octave::sys::localtime::init(), octave::sys::gmtime::init(), octave::sys::strptime::init(), base_diff_eqn::initialize(), octave::type_info::install_non_const_unary_op(), octave::type_info::install_unary_op(), octave::type_info::install_widening_op(), is_equivalent_type< double >(), is_equivalent_type< float >(), is_equivalent_type< int16_t >(), is_equivalent_type< int32_t >(), is_equivalent_type< int64_t >(), is_equivalent_type< int8_t >(), is_equivalent_type< octave_int16 >(), is_equivalent_type< octave_int32 >(), is_equivalent_type< octave_int64 >(), is_equivalent_type< octave_int8 >(), is_equivalent_type< octave_uint16 >(), is_equivalent_type< octave_uint32 >(), is_equivalent_type< octave_uint64 >(), is_equivalent_type< octave_uint8 >(), is_equivalent_type< uint16_t >(), is_equivalent_type< uint32_t >(), is_equivalent_type< uint64_t >(), is_equivalent_type< uint8_t >(), keyword_almost_match(), link(), octave::type_info::lookup_non_const_unary_op(), octave_value_typeinfo::lookup_non_const_unary_op(), octave::type_info::lookup_unary_op(), octave_value_typeinfo::lookup_unary_op(), octave::type_info::lookup_widening_op(), octave_value_typeinfo::lookup_widening_op(), lsode_user_function(), lsode_user_jacobian(), make_idx_args(), octave_dld_function::mark_fcn_file_up_to_date(), octave_mex_function::mark_fcn_file_up_to_date(), octave_user_script::mark_fcn_file_up_to_date(), octave_user_function::mark_fcn_file_up_to_date(), MatrixType::MatrixType(), octave::maybe_compound_binary_expression(), idx_vector::maybe_reduce(), mk_tm_map(), mx_inline_xsum(), RegExpFilter::newHotSpot(), UrlFilter::newHotSpot(), oct_float_randp(), oct_randp(), octave_ieee_init(), octave_strftime_wrapper(), octave_strptime_wrapper(), KPty::open(), base_det< T >::operator*=(), DASRT_result::operator=(), base_diff_eqn::operator=(), octave::sys::localtime::operator=(), octave::sys::gmtime::operator=(), poisson_cdf_lookup(), poisson_cdf_lookup_float(), poisson_rejection(), poisson_rejection_float(), radio_values::radio_values(), READABLE(), octave::type_info::register_non_const_unary_op(), octave_value_typeinfo::register_non_const_unary_op(), octave::type_info::register_unary_op(), octave_value_typeinfo::register_unary_op(), octave::type_info::register_widening_op(), octave_value_typeinfo::register_widening_op(), octave::math::roundb(), save_text_data_for_plotting(), octave::octave_lvalue::set_index(), Emulation::setHistory(), Vt102Emulation::setMargins(), Screen::setScroll(), TerminalView::setSelection(), octave_user_script::stash_fcn_file_time(), octave_user_function::stash_fcn_file_time(), octave::sys::base_tm::strftime(), string_vector::string_vector(), octave_cell::string_vector_value(), octave_struct::subsref(), octave_class::subsref(), swap_bytes(), octave::opengl_tesselator::tess_begin(), octave::opengl_tesselator::tess_combine(), octave::opengl_tesselator::tess_edge_flag(), octave::opengl_tesselator::tess_end(), octave::opengl_tesselator::tess_error(), octave::opengl_tesselator::tess_vertex(), base_diff_eqn::time(), octave::sys::time::time(), DASRT_result::times(), octave::tree_argument_list::tree_argument_list(), octave::tree_decl_command::tree_decl_command(), octave::tree_decl_init_list::tree_decl_init_list(), octave::tree_if_command_list::tree_if_command_list(), octave::tree_index_expression::tree_index_expression(), octave::tree_parameter_list::tree_parameter_list(), octave::tree_return_list::tree_return_list(), octave::tree_switch_case_list::tree_switch_case_list(), octave::octave_lvalue::value(), octave::tree_breakpoint::visit_if_command_list(), octave::tree_breakpoint::visit_switch_case_list(), octave::tree_evaluator::visit_switch_command(), and w_im_y100().

◆ Voptimize_subsasgn_calls

bool Voptimize_subsasgn_calls = true
static

Definition at line 63 of file ov-usr-fcn.cc.

Referenced by octave_user_function::subsasgn_optimization_ok().