GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
errwarn.cc File Reference
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "ovl.h"
#include "utils.h"
Include dependency graph for errwarn.cc:

Go to the source code of this file.

Functions

void err_2_or_3_dim_plot (void)
 
void err_data_conversion (const char *from, const char *to)
 
void err_disabled_feature (const std::string &fcn, const std::string &feature, const std::string &pkg)
 
void err_indexed_cs_list (void)
 
void err_invalid_conversion (const std::string &from, const std::string &to)
 
void err_invalid_inquiry_subscript (void)
 
void err_invalid_structure_assignment (void)
 
void err_nonbraced_cs_list_assignment (void)
 
void err_nonconformant (octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2)
 
void err_nonconformant (void)
 
void err_not_implemented (const char *fcn)
 
void err_range_invalid (void)
 
void err_square_matrix_required (const char *fcn, const char *name)
 
void err_string_invalid (void)
 
void err_unrecognized_data_fmt (const char *name)
 
void err_unrecognized_float_fmt (void)
 
void err_user_returned_invalid (const char *name)
 
void err_user_supplied_eval (const char *name)
 
void err_user_supplied_eval (octave::execution_exception &ee, const char *name)
 
void err_wrong_type_arg (const char *name, const char *s)
 
void err_wrong_type_arg (const char *name, const octave_value &tc)
 
void err_wrong_type_arg (const char *name, const std::string &s)
 
void err_wrong_type_arg (const char *s)
 
void err_wrong_type_arg (const octave_value &tc)
 
void err_wrong_type_arg (const std::string &name, const octave_value &tc)
 
void err_wrong_type_arg (const std::string &s)
 
void err_wrong_type_arg (octave::execution_exception &ee, const char *name, const char *s)
 
void err_wrong_type_arg (octave::execution_exception &ee, const char *name, const octave_value &tc)
 
void err_wrong_type_arg (octave::execution_exception &ee, const char *name, const std::string &s)
 
void err_wrong_type_arg (octave::execution_exception &ee, const char *s)
 
void err_wrong_type_arg (octave::execution_exception &ee, const octave_value &tc)
 
void err_wrong_type_arg (octave::execution_exception &ee, const std::string &name, const octave_value &tc)
 
void err_wrong_type_arg (octave::execution_exception &ee, const std::string &s)
 
void err_wrong_type_arg_for_binary_op (const octave_value &op)
 
void err_wrong_type_arg_for_unary_op (const octave_value &op)
 
void warn_array_as_logical (const dim_vector &dv)
 
void warn_complex_cmp (void)
 
void warn_data_file_in_path (const std::string &fcn, const std::string &file)
 
void warn_disabled_feature (const std::string &fcn, const std::string &feature, const std::string &pkg)
 
void warn_empty_arg (const char *name)
 
void warn_empty_index (const std::string &type_name)
 
void warn_implicit_conversion (const char *id, const char *from, const char *to)
 
void warn_implicit_conversion (const std::string &id, const std::string &from, const std::string &to)
 
void warn_invalid_value_specified (const char *name)
 
void warn_logical_conversion (void)
 
void warn_wrong_type_arg (const char *name, const octave_value &tc)
 

Function Documentation

◆ err_2_or_3_dim_plot()

void err_2_or_3_dim_plot ( void  )

Definition at line 41 of file errwarn.cc.

References error().

◆ err_data_conversion()

void err_data_conversion ( const char *  from,
const char *  to 
)

Definition at line 47 of file errwarn.cc.

References error().

◆ err_disabled_feature()

void err_disabled_feature ( const std::string &  fcn,
const std::string &  feature,
const std::string &  pkg 
)

Definition at line 53 of file errwarn.cc.

References error().

Referenced by hdf5_fstreambase::hdf5_fstreambase(), opengl_renderer::opengl_renderer(), add_hdf5_data(), F__delaunayn__(), F__eigs__(), F__enable_vm_eval__(), F__fltk_check__(), F__fltk_uigetfile__(), F__glpk__(), F__init_fltk__(), F__magick_finfo__(), F__magick_ping__(), F__magick_read__(), F__magick_write__(), F__ode15__(), F__player_audioplayer__(), F__player_get_channels__(), F__player_get_fs__(), F__player_get_id__(), F__player_get_nbits__(), F__player_get_sample_number__(), F__player_get_tag__(), F__player_get_total_samples__(), F__player_get_userdata__(), F__player_isplaying__(), F__player_pause__(), F__player_play__(), F__player_playblocking__(), F__player_resume__(), F__player_set_fs__(), F__player_set_tag__(), F__player_set_userdata__(), F__player_stop__(), F__recorder_audiorecorder__(), F__recorder_get_channels__(), F__recorder_get_fs__(), F__recorder_get_id__(), F__recorder_get_nbits__(), F__recorder_get_sample_number__(), F__recorder_get_tag__(), F__recorder_get_total_samples__(), F__recorder_get_userdata__(), F__recorder_getaudiodata__(), F__recorder_isrecording__(), F__recorder_pause__(), F__recorder_record__(), F__recorder_recordblocking__(), F__recorder_resume__(), F__recorder_set_fs__(), F__recorder_set_tag__(), F__recorder_set_userdata__(), F__recorder_stop__(), F__voronoi__(), Famd(), Faudiodevinfo(), Faudioformats(), Faudioinfo(), Faudioread(), Faudiowrite(), Fbzip2(), Fccolamd(), Fcolamd(), Fconvhulln(), Fcsymamd(), Fdmperm(), FF_DUPFD(), FF_GETFD(), FF_GETFL(), FF_SETFD(), FF_SETFL(), Ffftw(), Fgzip(), Fjsondecode(), Fjsonencode(), FO_APPEND(), FO_ASYNC(), FO_CREAT(), FO_EXCL(), FO_NONBLOCK(), FO_RDONLY(), FO_RDWR(), FO_SYNC(), FO_TRUNC(), FO_WRONLY(), Fsprank(), Fsymamd(), Fsymbfact(), hdf5_add_attr(), hdf5_add_scalar_attr(), hdf5_check_attr(), hdf5_get_scalar_attr(), hdf5_h5g_iterate(), hdf5_make_complex_type(), hdf5_read_next_data(), hdf5_types_compatible(), load_save_system::load(), load_hdf5_empty(), normalize_fopen_mode(), load_save_system::parse_save_options(), read_hdf5_data(), read_mat5_binary_element(), save_hdf5_data(), save_hdf5_empty(), and save_type_to_hdf5().

◆ err_indexed_cs_list()

◆ err_invalid_conversion()

void err_invalid_conversion ( const std::string &  from,
const std::string &  to 
)

Definition at line 71 of file errwarn.cc.

References error().

Referenced by octave_base_value::as_double(), octave_base_value::as_int16(), octave_base_value::as_int32(), octave_base_value::as_int64(), octave_base_value::as_int8(), octave_base_value::as_single(), octave_base_value::as_uint16(), octave_base_value::as_uint32(), octave_base_value::as_uint64(), octave_base_value::as_uint8(), octave_base_diag< DMT, MT >::complex_value(), octave_bool_matrix::complex_value(), octave_sparse_bool_matrix::complex_value(), octave_char_matrix::complex_value(), octave_complex_matrix::complex_value(), octave_sparse_complex_matrix::complex_value(), octave_float_complex_matrix::complex_value(), octave_float_matrix::complex_value(), octave_perm_matrix::complex_value(), ov_range< T >::complex_value(), octave_matrix::complex_value(), octave_sparse_matrix::complex_value(), octave_base_diag< DMT, MT >::double_value(), octave_bool_matrix::double_value(), octave_sparse_bool_matrix::double_value(), octave_char_matrix::double_value(), octave_complex_matrix::double_value(), octave_sparse_complex_matrix::double_value(), octave_float_complex_matrix::double_value(), octave_float_matrix::double_value(), octave_uint64_matrix::double_value(), octave_perm_matrix::double_value(), ov_range< T >::double_value(), octave_matrix::double_value(), octave_sparse_matrix::double_value(), octave_base_diag< DMT, MT >::float_complex_value(), octave_bool_matrix::float_complex_value(), octave_char_matrix::float_complex_value(), octave_complex_matrix::float_complex_value(), octave_float_complex_matrix::float_complex_value(), octave_float_matrix::float_complex_value(), octave_perm_matrix::float_complex_value(), ov_range< T >::float_complex_value(), octave_matrix::float_complex_value(), octave_base_diag< DMT, MT >::float_value(), octave_bool_matrix::float_value(), octave_char_matrix::float_value(), octave_complex_matrix::float_value(), octave_float_complex_matrix::float_value(), octave_float_matrix::float_value(), octave_uint64_matrix::float_value(), octave_perm_matrix::float_value(), ov_range< T >::float_value(), octave_matrix::float_value(), octave_char_matrix::int64_scalar_value(), and octave_char_matrix::uint64_scalar_value().

◆ err_invalid_inquiry_subscript()

void err_invalid_inquiry_subscript ( void  )

Definition at line 77 of file errwarn.cc.

References error().

Referenced by octave_lvalue::numel().

◆ err_invalid_structure_assignment()

void err_invalid_structure_assignment ( void  )

Definition at line 83 of file errwarn.cc.

References error().

Referenced by tree_simple_assignment::evaluate().

◆ err_nonbraced_cs_list_assignment()

void err_nonbraced_cs_list_assignment ( void  )

Definition at line 89 of file errwarn.cc.

References error().

Referenced by octave_cell::subsasgn(), and octave_struct::subsasgn().

◆ err_nonconformant() [1/2]

void err_nonconformant ( octave_idx_type  r1,
octave_idx_type  c1,
octave_idx_type  r2,
octave_idx_type  c2 
)

Definition at line 101 of file errwarn.cc.

References error().

◆ err_nonconformant() [2/2]

void err_nonconformant ( void  )

Definition at line 95 of file errwarn.cc.

References error().

◆ err_not_implemented()

void err_not_implemented ( const char *  fcn)

Definition at line 110 of file errwarn.cc.

References error().

◆ err_range_invalid()

void err_range_invalid ( void  )

Definition at line 116 of file errwarn.cc.

References error().

◆ err_square_matrix_required()

void err_square_matrix_required ( const char *  fcn,
const char *  name 
)

◆ err_string_invalid()

void err_string_invalid ( void  )

Definition at line 128 of file errwarn.cc.

References error().

◆ err_unrecognized_data_fmt()

void err_unrecognized_data_fmt ( const char *  name)

Definition at line 134 of file errwarn.cc.

References error().

Referenced by load_save_system::do_save(), and load_save_system::load_vars().

◆ err_unrecognized_float_fmt()

void err_unrecognized_float_fmt ( void  )

Definition at line 140 of file errwarn.cc.

References error().

◆ err_user_returned_invalid()

void err_user_returned_invalid ( const char *  name)

Definition at line 146 of file errwarn.cc.

References error().

◆ err_user_supplied_eval() [1/2]

◆ err_user_supplied_eval() [2/2]

void err_user_supplied_eval ( octave::execution_exception &  ee,
const char *  name 
)

Definition at line 160 of file errwarn.cc.

References error().

◆ err_wrong_type_arg() [1/14]

void err_wrong_type_arg ( const char *  name,
const char *  s 
)

Definition at line 166 of file errwarn.cc.

Referenced by printf_value_cache::printf_value_cache(), octave_base_value::array_value(), octave_class::as_mxArray(), octave_base_value::bool_array_value(), octave_base_value::bool_matrix_value(), octave_base_value::bool_value(), octave_base_value::cell_value(), octave_base_value::cellstr_value(), octave_base_value::char_array_value(), octave_base_value::classdef_object_value(), octave_base_value::complex_array_value(), octave_base_value::complex_diag_matrix_value(), octave_base_value::complex_matrix_value(), octave_base_value::complex_value(), octave_base_value::convert_to_row_or_column_vector(), octave_base_value::convert_to_str_internal(), octave_base_diag< DMT, MT >::diag(), octave_base_value::diag(), octave_base_value::diag_matrix_value(), do_accumarray_minmax_fcn(), do_cumminmax_body(), do_fft(), do_fft2(), do_fftn(), history_system::do_history(), do_hypot(), do_minmax_body(), do_rand(), octave_base_value::double_value(), err_wrong_type_arg(), F__accumarray_sum__(), F__accumdim_sum__(), F__methods__(), Fatan2(), Faudiowrite(), Fchol(), Fchol2inv(), Fcholinv(), octave_base_value::fcn_handle_value(), Fcumsum(), Fdbstatus(), Fdet(), Feig(), Ffind(), Fhess(), Finv(), Fisargout(), octave_base_value::float_array_value(), octave_base_value::float_complex_array_value(), octave_base_value::float_complex_diag_matrix_value(), octave_base_value::float_complex_matrix_value(), octave_base_value::float_complex_value(), octave_base_value::float_diag_matrix_value(), octave_base_value::float_matrix_value(), octave_base_value::float_value(), Flog2(), Flogical(), Flu(), Fmat2cell(), Fmod(), Fnorm(), Fnth_element(), Fnum2cell(), Fnum2hex(), Fpinv(), Fpow2(), Fprod(), Fproperties(), Fqr(), Frem(), Frepelems(), Frsf2csf(), Fschur(), Fsparse(), Fsum(), Fsvd(), Fsymbfact(), octave_base_value::function_value(), octave_base_value::int16_array_value(), octave_base_value::int16_scalar_value(), octave_base_value::int32_array_value(), octave_base_value::int32_scalar_value(), octave_base_value::int64_array_value(), octave_base_value::int64_scalar_value(), octave_base_value::int8_array_value(), octave_base_value::int8_scalar_value(), octave_base_value::is_sorted_rows(), octave_base_value::isfield(), octave_base_value::issorted(), octave_base_value::list_value(), octave_base_value::load_ascii(), octave_base_value::load_binary(), octave_base_value::load_hdf5(), octave_base_value::lock(), octave_base_value::map_keys(), octave_class::map_keys(), octave_base_value::map_value(), octave_base_value::matrix_type(), octave_base_value::matrix_value(), octave_base_value::nfields(), octave_base_value::nint_value(), Cell::nnz(), octave_base_value::nnz(), octave_base_value::nparents(), octave_base_value::parent_class_name_list(), octave_base_value::parent_class_names(), octave_base_value::perm_matrix_value(), octave_base_value::permute(), octave_base_value::print(), octave_base_value::print_raw(), octave_base_value::range_value(), ov_range< T >::range_value(), octave_base_value::reshape(), octave_base_value::resize(), octave_base_value::save_ascii(), octave_base_value::save_binary(), octave_base_value::save_hdf5(), octave_base_value::sort(), octave_base_value::sort_rows_idx(), octave_base_value::sparse_bool_matrix_value(), octave_base_value::sparse_complex_matrix_value(), octave_base_value::sparse_matrix_value(), octave_base_value::uint16_scalar_value(), octave_base_value::uint32_array_value(), octave_base_value::uint32_scalar_value(), octave_base_value::uint64_array_value(), octave_base_value::uint64_scalar_value(), octave_base_value::uint8_array_value(), octave_base_value::uint8_scalar_value(), octave_base_value::unlock(), octave_base_value::user_code_value(), octave_base_value::user_function_value(), octave_base_value::user_script_value(), octave_base_value::write(), octave_base_value::wrong_type_arg_error(), xcolnorms(), xfrobnorm(), xnorm(), and xrownorms().

◆ err_wrong_type_arg() [2/14]

void err_wrong_type_arg ( const char *  name,
const octave_value tc 
)

Definition at line 196 of file errwarn.cc.

References err_wrong_type_arg().

◆ err_wrong_type_arg() [3/14]

void err_wrong_type_arg ( const char *  name,
const std::string &  s 
)

Definition at line 181 of file errwarn.cc.

References err_wrong_type_arg().

◆ err_wrong_type_arg() [4/14]

void err_wrong_type_arg ( const char *  s)

Definition at line 228 of file errwarn.cc.

References err_wrong_type_arg().

◆ err_wrong_type_arg() [5/14]

void err_wrong_type_arg ( const octave_value tc)

Definition at line 256 of file errwarn.cc.

References err_wrong_type_arg().

◆ err_wrong_type_arg() [6/14]

void err_wrong_type_arg ( const std::string &  name,
const octave_value tc 
)

Definition at line 213 of file errwarn.cc.

References err_wrong_type_arg().

◆ err_wrong_type_arg() [7/14]

void err_wrong_type_arg ( const std::string &  s)

Definition at line 242 of file errwarn.cc.

References err_wrong_type_arg().

◆ err_wrong_type_arg() [8/14]

void err_wrong_type_arg ( octave::execution_exception &  ee,
const char *  name,
const char *  s 
)

Definition at line 174 of file errwarn.cc.

References error().

◆ err_wrong_type_arg() [9/14]

void err_wrong_type_arg ( octave::execution_exception &  ee,
const char *  name,
const octave_value tc 
)

Definition at line 204 of file errwarn.cc.

References err_wrong_type_arg(), and octave_value::type_name().

◆ err_wrong_type_arg() [10/14]

void err_wrong_type_arg ( octave::execution_exception &  ee,
const char *  name,
const std::string &  s 
)

Definition at line 189 of file errwarn.cc.

References err_wrong_type_arg().

◆ err_wrong_type_arg() [11/14]

void err_wrong_type_arg ( octave::execution_exception &  ee,
const char *  s 
)

Definition at line 236 of file errwarn.cc.

References error().

◆ err_wrong_type_arg() [12/14]

void err_wrong_type_arg ( octave::execution_exception &  ee,
const octave_value tc 
)

Definition at line 264 of file errwarn.cc.

References err_wrong_type_arg(), and octave_value::type_name().

◆ err_wrong_type_arg() [13/14]

void err_wrong_type_arg ( octave::execution_exception &  ee,
const std::string &  name,
const octave_value tc 
)

Definition at line 221 of file errwarn.cc.

References err_wrong_type_arg().

◆ err_wrong_type_arg() [14/14]

void err_wrong_type_arg ( octave::execution_exception &  ee,
const std::string &  s 
)

Definition at line 250 of file errwarn.cc.

References err_wrong_type_arg().

◆ err_wrong_type_arg_for_binary_op()

void err_wrong_type_arg_for_binary_op ( const octave_value op)

Definition at line 272 of file errwarn.cc.

References error(), and octave_value::type_name().

◆ err_wrong_type_arg_for_unary_op()

void err_wrong_type_arg_for_unary_op ( const octave_value op)

Definition at line 279 of file errwarn.cc.

References error(), and octave_value::type_name().

◆ warn_array_as_logical()

void warn_array_as_logical ( const dim_vector dv)

◆ warn_complex_cmp()

void warn_complex_cmp ( void  )

Definition at line 303 of file errwarn.cc.

References warning_with_id().

◆ warn_data_file_in_path()

void warn_data_file_in_path ( const std::string &  fcn,
const std::string &  file 
)

Definition at line 310 of file errwarn.cc.

References warning_with_id().

Referenced by find_data_file_in_load_path().

◆ warn_disabled_feature()

void warn_disabled_feature ( const std::string &  fcn,
const std::string &  feature,
const std::string &  pkg 
)

Definition at line 318 of file errwarn.cc.

References warning().

Referenced by check_hdf5_types(), Fjsonencode(), text_renderer::ok(), and raw_mode().

◆ warn_empty_arg()

void warn_empty_arg ( const char *  name)

Definition at line 330 of file errwarn.cc.

References warning().

Referenced by Fordqz(), and Fqz().

◆ warn_empty_index()

void warn_empty_index ( const std::string &  type_name)

◆ warn_implicit_conversion() [1/2]

void warn_implicit_conversion ( const char *  id,
const char *  from,
const char *  to 
)

Definition at line 344 of file errwarn.cc.

References warning_with_id().

Referenced by octave_complex::array_value(), octave_complex_matrix::array_value(), octave_float_complex::array_value(), octave_complex_matrix::char_array_value(), octave_sparse_complex_matrix::char_array_value(), octave_float_complex_matrix::char_array_value(), octave_base_diag< DMT, MT >::complex_value(), octave_bool_matrix::complex_value(), octave_sparse_bool_matrix::complex_value(), octave_char_matrix::complex_value(), octave_complex_matrix::complex_value(), octave_sparse_complex_matrix::complex_value(), octave_float_complex_matrix::complex_value(), octave_float_matrix::complex_value(), octave_perm_matrix::complex_value(), ov_range< T >::complex_value(), octave_matrix::complex_value(), octave_sparse_matrix::complex_value(), tm_const::concat(), octave_base_value::convert_to_str(), octave_complex_diag_matrix::diag_matrix_value(), octave_float_complex_diag_matrix::diag_matrix_value(), do_cat(), octave_base_diag< DMT, MT >::double_value(), octave_bool_matrix::double_value(), octave_sparse_bool_matrix::double_value(), octave_char_matrix::double_value(), octave_complex::double_value(), octave_complex_matrix::double_value(), octave_sparse_complex_matrix::double_value(), octave_float_complex::double_value(), octave_float_complex_matrix::double_value(), octave_float_matrix::double_value(), octave_uint64_matrix::double_value(), octave_perm_matrix::double_value(), ov_range< T >::double_value(), octave_matrix::double_value(), octave_sparse_matrix::double_value(), octave_complex::float_array_value(), octave_float_complex::float_array_value(), octave_base_diag< DMT, MT >::float_complex_value(), octave_bool_matrix::float_complex_value(), octave_char_matrix::float_complex_value(), octave_complex_matrix::float_complex_value(), octave_float_complex_matrix::float_complex_value(), octave_float_matrix::float_complex_value(), octave_perm_matrix::float_complex_value(), ov_range< T >::float_complex_value(), octave_matrix::float_complex_value(), octave_complex_diag_matrix::float_diag_matrix_value(), octave_float_complex_diag_matrix::float_diag_matrix_value(), octave_complex::float_matrix_value(), octave_complex_matrix::float_matrix_value(), octave_float_complex::float_matrix_value(), octave_float_complex_matrix::float_matrix_value(), octave_base_diag< DMT, MT >::float_value(), octave_bool_matrix::float_value(), octave_char_matrix::float_value(), octave_complex::float_value(), octave_complex_matrix::float_value(), octave_float_complex::float_value(), octave_float_complex_matrix::float_value(), octave_float_matrix::float_value(), octave_uint64_matrix::float_value(), octave_perm_matrix::float_value(), ov_range< T >::float_value(), octave_matrix::float_value(), octave_char_matrix::int64_scalar_value(), octave_complex::matrix_value(), octave_complex_matrix::matrix_value(), octave_sparse_complex_matrix::matrix_value(), octave_float_complex::matrix_value(), octave_float_complex_matrix::matrix_value(), oct_catop_chm_m(), oct_catop_chm_s(), oct_catop_m_chm(), oct_catop_s_chm(), octave_complex_matrix::sparse_matrix_value(), octave_sparse_complex_matrix::sparse_matrix_value(), octave_float_complex_matrix::sparse_matrix_value(), and octave_char_matrix::uint64_scalar_value().

◆ warn_implicit_conversion() [2/2]

void warn_implicit_conversion ( const std::string &  id,
const std::string &  from,
const std::string &  to 
)

Definition at line 350 of file errwarn.cc.

References warning_with_id().

◆ warn_invalid_value_specified()

void warn_invalid_value_specified ( const char *  name)

Definition at line 359 of file errwarn.cc.

References warning().

◆ warn_logical_conversion()

◆ warn_wrong_type_arg()

void warn_wrong_type_arg ( const char *  name,
const octave_value tc 
)

Definition at line 372 of file errwarn.cc.

References octave_value::type_name(), and warning().

Referenced by save_mat5_binary_element(), and save_mat_binary_data().