#include <istream>
#include <limits>
#include <ostream>
#include "lo-ieee.h"
#include "lo-mappers.h"
#include "defun.h"
#include "errwarn.h"
#include "interpreter-private.h"
#include "interpreter.h"
#include "mxarray.h"
#include "oct-hdf5.h"
#include "oct-lvalue.h"
#include "oct-map.h"
#include "oct-stream.h"
#include "ops.h"
#include "ov-base.h"
#include "ov-cell.h"
#include "ov-ch-mat.h"
#include "ov-classdef.h"
#include "ov-complex.h"
#include "ov-cx-mat.h"
#include "ov-fcn-handle.h"
#include "ov-range.h"
#include "ov-re-mat.h"
#include "ov-scalar.h"
#include "ov-str-mat.h"
#include "ovl.h"
#include "parse.h"
#include "pr-flt-fmt.h"
#include "pr-output.h"
#include "utils.h"
#include "variables.h"
Go to the source code of this file.
Macros | |
#define | INT_CONV_METHOD(T, F) |
Functions | |
builtin_type_t | btyp_mixed_numeric (builtin_type_t x, builtin_type_t y) |
Determine the resulting type for a possible mixed-type operation. More... | |
bool | called_from_builtin (void) |
static OCTAVE_NORETURN void | err_assign_conversion_failed (const std::string &tn1, const std::string &tn2) |
static OCTAVE_NORETURN void | err_indexed_assignment (const std::string &tn1, const std::string &tn2) |
static OCTAVE_NORETURN void | err_no_conversion (const std::string &on, const std::string &tn1, const std::string &tn2) |
OCTAVE_EXPORT octave_value_list | Fsparse_auto_mutate (const octave_value_list &args, int nargout) |
void | install_base_type_conversions (octave::type_info &ti) |
octave_value | make_idx_args (const std::string &type, const std::list< octave_value_list > &idx, const std::string &who) |
static octave_base_value * | oct_conv_cell_conv (const octave_base_value &) |
static octave_base_value * | oct_conv_complex_matrix_conv (const octave_base_value &) |
static octave_base_value * | oct_conv_matrix_conv (const octave_base_value &) |
static octave_base_value * | oct_conv_string_conv (const octave_base_value &) |
static octave_value_list | sanitize (const octave_value_list &ovl) |
Variables | |
std::string | btyp_class_name [btyp_num_types] |
bool | Vsparse_auto_mutate = false |
#define INT_CONV_METHOD | ( | T, | |
F | |||
) |
Definition at line 461 of file ov-base.cc.
builtin_type_t btyp_mixed_numeric | ( | builtin_type_t | x, |
builtin_type_t | y | ||
) |
Determine the resulting type for a possible mixed-type operation.
Rules for the resulting type:
Definition at line 65 of file ov-base.cc.
References btyp_bool, btyp_unknown, retval, and x.
Referenced by do_minmax_body().
bool called_from_builtin | ( | void | ) |
Definition at line 1457 of file ov-base.cc.
References octave::__get_evaluator__(), octave::tree_evaluator::caller_function(), and octave_function::name().
Referenced by octave_class::size(), octave_classdef::size(), octave_classdef::subsasgn(), octave_class::subsasgn_common(), octave_class::subsref(), octave_classdef::subsref(), octave_class::xnumel(), and octave_classdef::xnumel().
|
static |
Definition at line 1152 of file ov-base.cc.
References error().
Referenced by octave_base_value::numeric_assign().
|
static |
Definition at line 1144 of file ov-base.cc.
References error().
Referenced by octave_base_value::numeric_assign().
|
static |
Definition at line 1160 of file ov-base.cc.
References error().
Referenced by octave_base_value::numeric_assign().
OCTAVE_EXPORT octave_value_list Fsparse_auto_mutate | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 1521 of file ov-base.cc.
References SET_INTERNAL_VARIABLE.
void install_base_type_conversions | ( | octave::type_info & | ti | ) |
Definition at line 1474 of file ov-base.cc.
References INSTALL_ASSIGNCONV_TI, and INSTALL_WIDENOP_TI.
octave_value make_idx_args | ( | const std::string & | type, |
const std::list< octave_value_list > & | idx, | ||
const std::string & | who | ||
) |
Definition at line 1394 of file ov-base.cc.
References error(), octave_value::is_string(), len, octave_value_list::length(), m, panic_impossible, and sanitize().
Referenced by octave_classdef::subsasgn(), octave_class::subsasgn_common(), octave_class::subsref(), and octave_classdef::subsref().
|
static |
Definition at line 1374 of file ov-base.cc.
|
static |
Definition at line 1362 of file ov-base.cc.
|
static |
Definition at line 1356 of file ov-base.cc.
|
static |
Definition at line 1368 of file ov-base.cc.
|
inlinestatic |
Definition at line 1380 of file ov-base.cc.
References octave_value_list::length(), ovl(), and retval.
Referenced by make_idx_args().
std::string btyp_class_name[btyp_num_types] |
Definition at line 89 of file ov-base.cc.
Referenced by octave::get_dispatch_type().
bool Vsparse_auto_mutate = false |
Definition at line 103 of file ov-base.cc.
Referenced by Fsparse(), octave_sparse_bool_matrix::try_narrowing_conversion(), octave_sparse_complex_matrix::try_narrowing_conversion(), and octave_sparse_matrix::try_narrowing_conversion().