26 #if defined (HAVE_CONFIG_H)
43 "Octave:nearly-singular-matrix";
50 (*current_liboctave_error_handler)
51 (
"invalid conversion from NaN to logical");
57 (*current_liboctave_error_handler)
58 (
"invalid conversion from NaN to character");
67 (*current_liboctave_error_with_id_handler)
68 (err_id,
"%s: nonconformant arguments (op1 len: %d, op2 len: %d)",
69 op, op1_len, op2_len);
79 (*current_liboctave_error_with_id_handler)
80 (err_id,
"%s: nonconformant arguments (op1 is %dx%d, op2 is %dx%d)",
81 op, op1_nr, op1_nc, op2_nr, op2_nc);
93 (*current_liboctave_error_with_id_handler)
94 (err_id,
"%s: nonconformant arguments (op1 is %s, op2 is %s)",
95 op, op1_dims_str.c_str (), op2_dims_str.c_str ());
104 (*current_liboctave_error_with_id_handler)
105 (err_id,
"A(%s) = []: index out of bounds: value %d out of bound %d",
106 is1d ?
"I" :
"..,I,..", idx, ext);
111 class invalid_index :
public index_exception
122 #if defined (OCTAVE_ENABLE_64)
123 return "subscripts must be either integers 1 to (2^63)-1 or logicals";
125 return "subscripts must be either integers 1 to (2^31)-1 or logicals";
152 std::ostringstream buf;
155 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
156 # pragma GCC diagnostic push
157 # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
162 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
163 # pragma GCC diagnostic pop
171 std::ostringstream buf;
174 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
175 # pragma GCC diagnostic push
176 # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
181 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
182 # pragma GCC diagnostic pop
190 class out_of_range :
public index_exception
206 expl =
"but " +
var +
" has size ";
208 expl =
"but object has size ";
214 std::ostringstream buf;
216 expl =
"out of bound " + buf.str ();
247 std::ostringstream buf;
263 std::ostringstream buf;
276 (*current_liboctave_error_with_id_handler)
277 (
"Octave:invalid-resize",
278 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element");
286 (*current_liboctave_warning_with_id_handler)
288 "matrix singular to machine precision");
292 (*current_liboctave_warning_with_id_handler)
294 "matrix singular to machine precision, rcond = %g", rcond);
Octave interface to the compression and uncompression libraries.
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)
std::string str(char sep= 'x') const
in that an updated permutation matrix is returned Note that if var
void set_size(const dim_vector &size_in)
static const char * warning_id_nearly_singular_matrix
F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &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 F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T F77_REAL F77_REAL &F77_RET_T F77_DBLE F77_DBLE &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)
static const char * error_id_index_out_of_bounds
const char * err_id(void) const
std::string details(void) const
const char * err_id(void) const
OCTAVE_EXPORT octave_value_list or N dimensional array whose elements are all equal to the IEEE symbol zero divided by nd tex zero divided by nd ifnottex and any operation involving another NaN value(5+NaN).Note that NaN always compares not equal to NaN(NaN!
std::string details(void) const
static const char * error_id_invalid_index
octave_idx_type ndims(void) const
Number of dimensions.
void gripe_index_out_of_range(int nd, int dim, octave_idx_type idx, octave_idx_type ext)
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
static const char * warning_id_singular_matrix