23 #if defined (HAVE_CONFIG_H) 40 "Octave:nearly-singular-matrix";
49 (*current_liboctave_error_handler)
50 (
"invalid conversion from NaN to logical");
56 (*current_liboctave_error_handler)
57 (
"invalid conversion from NaN to character");
66 (*current_liboctave_error_with_id_handler)
67 (err_id,
"%s: nonconformant arguments (op1 len: %d, op2 len: %d)",
68 op, op1_len, op2_len);
78 (*current_liboctave_error_with_id_handler)
79 (err_id,
"%s: nonconformant arguments (op1 is %dx%d, op2 is %dx%d)",
80 op, op1_nr, op1_nc, op2_nr, op2_nc);
92 (*current_liboctave_error_with_id_handler)
93 (err_id,
"%s: nonconformant arguments (op1 is %s, op2 is %s)",
94 op, op1_dims_str.c_str (), op2_dims_str.c_str ());
103 (*current_liboctave_error_with_id_handler)
104 (err_id,
"A(%s) = []: index out of bounds: value %d out of bound %d",
105 is1d ?
"I" :
"..,I,..", idx, ext);
126 std::ostringstream buf;
128 if (
var.empty () ||
var ==
"<unknown>")
133 bool show_parens =
dim > 0;
145 buf <<
"(...[x" <<
dim - 1 <<
"]...";
161 buf <<
"...[x" <<
nd -
dim <<
"]...)";
178 #if defined (OCTAVE_ENABLE_64) 179 return "subscripts must be either integers 1 to (2^63)-1 or logicals";
181 return "subscripts must be either integers 1 to (2^31)-1 or logicals";
207 std::ostringstream buf;
216 std::ostringstream buf;
239 expl =
"but " +
var +
" has size ";
241 expl =
"but object has size ";
247 std::ostringstream buf;
249 expl =
"out of bound " + buf.str ();
279 std::ostringstream buf;
295 std::ostringstream buf;
308 (*current_liboctave_error_with_id_handler)
309 (
"Octave:invalid-resize",
310 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element");
318 (*current_liboctave_warning_with_id_handler)
320 "matrix singular to machine precision");
324 (*current_liboctave_warning_with_id_handler)
326 "matrix singular to machine precision, rcond = %g", rcond);
std::string str(char sep='x') const
out_of_range(const std::string &value, octave_idx_type nd_in, octave_idx_type dim_in)
static const char * warning_id_nearly_singular_matrix
static const char * error_id_nonconformant_args
void set_size(const dim_vector &size_in)
void err_index_out_of_range(int nd, int dim, octave_idx_type idx, octave_idx_type ext)
void err_invalid_index(const std::string &idx, octave_idx_type nd, octave_idx_type dim, const std::string &)
void err_nan_to_logical_conversion(void)
static const char * error_id_invalid_index
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
void err_del_index_out_of_range(bool is1d, octave_idx_type idx, octave_idx_type ext)
std::string expression(void) const
void set_extent(octave_idx_type ext)
static const char * warning_id_singular_matrix
void err_nonconformant(const char *op, octave_idx_type op1_len, octave_idx_type op2_len)
invalid_index(const std::string &value, octave_idx_type ndim, octave_idx_type dimen)
const char * err_id(void) const
std::string details(void) const
std::string details(void) const
std::string idx(void) const
void err_invalid_resize(void)
virtual std::string message(void) const
const char * err_id(void) const
static const char * error_id_index_out_of_bounds
octave_idx_type ndims(void) const
Number of dimensions.
virtual std::string details(void) const =0
void err_nan_to_character_conversion(void)
Vector representing the dimensions (size) of an Array.
void warn_singular_matrix(double rcond)
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