#include <cinttypes>
#include <cmath>
#include <limits>
#include <sstream>
#include "lo-array-errwarn.h"
#include "lo-error.h"
Go to the source code of this file.
Classes | |
class | invalid_index |
class | out_of_range |
Variables | |
static const char * | error_id_index_out_of_bounds = "Octave:index-out-of-bounds" |
static const char * | error_id_invalid_index = "Octave:invalid-index" |
static const char * | error_id_nonconformant_args = "Octave:nonconformant-args" |
static const char * | warning_id_nearly_singular_matrix = "Octave:nearly-singular-matrix" |
static const char * | warning_id_singular_matrix = "Octave:singular-matrix" |
void err_del_index_out_of_range | ( | bool | is1d, |
octave_idx_type | idx, | ||
octave_idx_type | ext | ||
) |
Definition at line 111 of file lo-array-errwarn.cc.
References error_id_index_out_of_bounds.
Referenced by Array< T, Alloc >::delete_elements(), and Sparse< T, Alloc >::delete_elements().
void err_index_out_of_range | ( | int | nd, |
int | dim, | ||
octave_idx_type | idx, | ||
octave_idx_type | ext, | ||
const dim_vector & | dv | ||
) |
Definition at line 274 of file lo-array-errwarn.cc.
void err_invalid_index | ( | const std::string & | idx, |
octave_idx_type | nd, | ||
octave_idx_type | dim, | ||
const std::string & | var | ||
) |
Definition at line 202 of file lo-array-errwarn.cc.
Referenced by idx_vector::idx_range_rep::idx_range_rep(), idx_vector::idx_scalar_rep::idx_scalar_rep(), idx_vector::idx_vector_rep::idx_vector_rep(), idx_vector::idx_vector_rep::checkelem(), idx_vector::idx_mask_rep::checkelem(), Array< T, Alloc >::checkelem(), compute_index(), convert_index(), err_invalid_index(), octave_base_value::index_vector(), and octave_sparse_matrix::index_vector().
void err_invalid_index | ( | double | n, |
octave_idx_type | nd, | ||
octave_idx_type | dim, | ||
const std::string & | var | ||
) |
Definition at line 218 of file lo-array-errwarn.cc.
References err_invalid_index(), floor(), isnan(), and n.
void err_invalid_index | ( | octave_idx_type | n, |
octave_idx_type | nd, | ||
octave_idx_type | dim, | ||
const std::string & | var | ||
) |
Definition at line 211 of file lo-array-errwarn.cc.
References err_invalid_index(), and n.
void err_invalid_resize | ( | void | ) |
Definition at line 281 of file lo-array-errwarn.cc.
Referenced by Array< T, Alloc >::resize(), Sparse< T, Alloc >::resize1(), Array< T, Alloc >::resize1(), and Array< T, Alloc >::resize2().
void err_nan_to_character_conversion | ( | void | ) |
void err_nan_to_logical_conversion | ( | void | ) |
Definition at line 57 of file lo-array-errwarn.cc.
Referenced by octave_complex::bool_array_value(), octave_complex_matrix::bool_array_value(), octave_float_scalar::bool_array_value(), octave_float_complex::bool_array_value(), octave_float_complex_matrix::bool_array_value(), octave_float_matrix::bool_array_value(), octave_matrix::bool_array_value(), octave_sparse_matrix::bool_array_value(), octave_scalar::bool_array_value(), octave_complex::bool_value(), octave_float_scalar::bool_value(), octave_float_complex::bool_value(), octave_scalar::bool_value(), octave_base_matrix< MT >::is_true(), oct_unop_not(), ComplexNDArray::operator!(), SparseComplexMatrix::operator!(), NDArray::operator!(), SparseMatrix::operator!(), FloatComplexNDArray::operator!(), FloatNDArray::operator!(), octave_base_scalar< double >::print_raw(), octave_sparse_complex_matrix::sparse_bool_matrix_value(), and octave_sparse_matrix::sparse_bool_matrix_value().
void err_nonconformant | ( | const char * | op, |
const dim_vector & | op1_dims, | ||
const dim_vector & | op2_dims | ||
) |
Definition at line 97 of file lo-array-errwarn.cc.
References error_id_nonconformant_args, and dim_vector::str().
void err_nonconformant | ( | const char * | op, |
octave_idx_type | op1_len, | ||
octave_idx_type | op2_len | ||
) |
Definition at line 71 of file lo-array-errwarn.cc.
References error_id_nonconformant_args.
Referenced by Array< T, Alloc >::assign(), Sparse< T, Alloc >::assign(), binmap(), do_add_dm_sm(), do_add_sm_dm(), do_extended_gcd(), do_mm_binary_op(), do_mm_inplace_op(), do_mul_dm_sm(), do_mul_sm_dm(), do_sub_dm_sm(), do_sub_sm_dm(), elem_xpow(), Fbalance(), Fordqz(), Fqz(), Fsylvester(), gepbalance< T >::init(), map_2_xldexp(), map_2_xldexp_sparse(), max(), min(), mx_div_conform(), mx_leftdiv_conform(), octinternal_do_mul_pm_sm(), octinternal_do_mul_sm_pm(), operator*(), ComplexColumnVector::operator+=(), ComplexDiagMatrix::operator+=(), ComplexMatrix::operator+=(), Matrix::operator+=(), FloatComplexColumnVector::operator+=(), FloatComplexDiagMatrix::operator+=(), FloatComplexMatrix::operator+=(), FloatMatrix::operator+=(), FloatComplexRowVector::operator+=(), ComplexRowVector::operator+=(), ComplexColumnVector::operator-=(), ComplexMatrix::operator-=(), Matrix::operator-=(), FloatComplexColumnVector::operator-=(), FloatComplexMatrix::operator-=(), FloatMatrix::operator-=(), FloatComplexRowVector::operator-=(), ComplexRowVector::operator-=(), plus_or_minus(), product(), quotient(), and xgemm().
void err_nonconformant | ( | const char * | op, |
octave_idx_type | op1_nr, | ||
octave_idx_type | op1_nc, | ||
octave_idx_type | op2_nr, | ||
octave_idx_type | op2_nc | ||
) |
Definition at line 83 of file lo-array-errwarn.cc.
References error_id_nonconformant_args.
void warn_singular_matrix | ( | double | rcond | ) |
Definition at line 289 of file lo-array-errwarn.cc.
References warning_id_nearly_singular_matrix, and warning_id_singular_matrix.
Referenced by SparseComplexMatrix::bsolve(), SparseMatrix::bsolve(), SparseComplexMatrix::factorize(), SparseMatrix::factorize(), Finv(), ComplexMatrix::fsolve(), FloatComplexMatrix::fsolve(), FloatMatrix::fsolve(), Matrix::fsolve(), SparseComplexMatrix::fsolve(), SparseMatrix::fsolve(), ComplexMatrix::ltsolve(), FloatComplexMatrix::ltsolve(), FloatMatrix::ltsolve(), Matrix::ltsolve(), SparseComplexMatrix::ltsolve(), SparseMatrix::ltsolve(), solve_singularity_warning(), SparseComplexMatrix::trisolve(), SparseMatrix::trisolve(), ComplexMatrix::utsolve(), FloatComplexMatrix::utsolve(), FloatMatrix::utsolve(), Matrix::utsolve(), SparseComplexMatrix::utsolve(), and SparseMatrix::utsolve().
|
static |
Definition at line 46 of file lo-array-errwarn.cc.
Referenced by err_del_index_out_of_range(), and out_of_range::err_id().
|
static |
Definition at line 49 of file lo-array-errwarn.cc.
Referenced by invalid_index::err_id().
|
static |
Definition at line 43 of file lo-array-errwarn.cc.
Referenced by err_nonconformant().
|
static |
Definition at line 51 of file lo-array-errwarn.cc.
Referenced by warn_singular_matrix().
|
static |
Definition at line 54 of file lo-array-errwarn.cc.
Referenced by warn_singular_matrix().