27 #if defined (HAVE_CONFIG_H) 44 "Octave:nearly-singular-matrix";
51 (*current_liboctave_error_handler)
52 (
"invalid conversion from NaN to logical");
58 (*current_liboctave_error_handler)
59 (
"invalid conversion from NaN to character");
68 (*current_liboctave_error_with_id_handler)
69 (err_id,
"%s: nonconformant arguments (op1 len: %d, op2 len: %d)",
70 op, op1_len, op2_len);
80 (*current_liboctave_error_with_id_handler)
81 (err_id,
"%s: nonconformant arguments (op1 is %dx%d, op2 is %dx%d)",
82 op, op1_nr, op1_nc, op2_nr, op2_nc);
94 (*current_liboctave_error_with_id_handler)
95 (err_id,
"%s: nonconformant arguments (op1 is %s, op2 is %s)",
96 op, op1_dims_str.c_str (), op2_dims_str.c_str ());
105 (*current_liboctave_error_with_id_handler)
106 (err_id,
"A(%s) = []: index out of bounds: value %d out of bound %d",
107 is1d ?
"I" :
"..,I,..", idx, ext);
112 class invalid_index :
public index_exception
123 #if defined (OCTAVE_ENABLE_64) 124 return "subscripts must be either integers 1 to (2^63)-1 or logicals";
126 return "subscripts must be either integers 1 to (2^31)-1 or logicals";
153 std::ostringstream buf;
156 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 157 # pragma GCC diagnostic push 158 # pragma GCC diagnostic ignored "-Wdeprecated-declarations" 163 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 164 # pragma GCC diagnostic pop 172 std::ostringstream buf;
175 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 176 # pragma GCC diagnostic push 177 # pragma GCC diagnostic ignored "-Wdeprecated-declarations" 182 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 183 # pragma GCC diagnostic pop 191 class out_of_range :
public index_exception
207 expl =
"but " +
var +
" has size ";
209 expl =
"but object has size ";
215 std::ostringstream buf;
217 expl =
"out of bound " + buf.str ();
248 std::ostringstream buf;
264 std::ostringstream buf;
277 (*current_liboctave_error_with_id_handler)
278 (
"Octave:invalid-resize",
279 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element");
287 (*current_liboctave_warning_with_id_handler)
289 "matrix singular to machine precision");
293 (*current_liboctave_warning_with_id_handler)
295 "matrix singular to machine precision, rcond = %g", rcond);
std::string str(char sep='x') const
void gripe_nonconformant(const char *op, octave_idx_type op1_len, octave_idx_type op2_len)
out_of_range(const std::string &value, octave_idx_type nd_in, octave_idx_type dim_in)
void set_size(const dim_vector &size_in)
static const char * warning_id_nearly_singular_matrix
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
static const char * error_id_nonconformant_args
void gripe_nan_to_logical_conversion(void)
void set_extent(octave_idx_type ext)
void gripe_invalid_resize(void)
void gripe_invalid_index(const std::string &idx, octave_idx_type nd, octave_idx_type dim, const std::string &)
invalid_index(const std::string &value, octave_idx_type ndim, octave_idx_type dimen)
void gripe_nan_to_character_conversion(void)
void gripe_singular_matrix(double rcond)
const char * err_id(void) const
static const char * error_id_index_out_of_bounds
std::string details(void) const
std::string details(void) const
const char * err_id(void) const
static const char * error_id_invalid_index
void gripe_index_out_of_range(int nd, int dim, octave_idx_type idx, octave_idx_type ext)
octave_idx_type ndims(void) const
Number of dimensions.
void gripe_del_index_out_of_range(bool is1d, octave_idx_type idx, octave_idx_type ext)
Vector representing the dimensions (size) of an Array.
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
nd group nd example For each display the value
static const char * warning_id_singular_matrix