GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
lo-array-errwarn.cc File Reference
#include <cinttypes>
#include <cmath>
#include <limits>
#include <sstream>
#include "lo-array-errwarn.h"
#include "lo-error.h"
Include dependency graph for lo-array-errwarn.cc:

Go to the source code of this file.

Classes

class  invalid_index
 
class  out_of_range
 

Functions

void err_del_index_out_of_range (bool is1d, octave_idx_type idx, octave_idx_type ext)
 
void err_index_out_of_range (int nd, int dim, octave_idx_type idx, octave_idx_type ext, const dim_vector &dv)
 
void err_invalid_index (const std::string &idx, octave_idx_type nd, octave_idx_type dim, const std::string &)
 
void err_invalid_index (double n, octave_idx_type nd, octave_idx_type dim, const std::string &var)
 
void err_invalid_index (octave_idx_type n, octave_idx_type nd, octave_idx_type dim, const std::string &var)
 
void err_invalid_resize (void)
 
void err_nan_to_character_conversion (void)
 
void err_nan_to_logical_conversion (void)
 
void err_nonconformant (const char *op, const dim_vector &op1_dims, const dim_vector &op2_dims)
 
void err_nonconformant (const char *op, octave_idx_type op1_len, octave_idx_type op2_len)
 
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)
 
void warn_singular_matrix (double rcond)
 

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"
 

Function Documentation

◆ err_del_index_out_of_range()

void err_del_index_out_of_range ( bool  is1d,
octave_idx_type  idx,
octave_idx_type  ext 
)

◆ err_index_out_of_range()

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.

◆ err_invalid_index() [1/3]

◆ err_invalid_index() [2/3]

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.

◆ err_invalid_index() [3/3]

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.

◆ err_invalid_resize()

void err_invalid_resize ( void  )

◆ err_nan_to_character_conversion()

◆ err_nan_to_logical_conversion()

◆ err_nonconformant() [1/3]

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().

◆ err_nonconformant() [2/3]

◆ err_nonconformant() [3/3]

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.

◆ warn_singular_matrix()

Variable Documentation

◆ error_id_index_out_of_bounds

const char* error_id_index_out_of_bounds = "Octave:index-out-of-bounds"
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().

◆ error_id_invalid_index

const char* error_id_invalid_index = "Octave:invalid-index"
static

Definition at line 49 of file lo-array-errwarn.cc.

Referenced by invalid_index::err_id().

◆ error_id_nonconformant_args

const char* error_id_nonconformant_args = "Octave:nonconformant-args"
static

Definition at line 43 of file lo-array-errwarn.cc.

Referenced by err_nonconformant().

◆ warning_id_nearly_singular_matrix

const char* warning_id_nearly_singular_matrix = "Octave:nearly-singular-matrix"
static

Definition at line 51 of file lo-array-errwarn.cc.

Referenced by warn_singular_matrix().

◆ warning_id_singular_matrix

const char* warning_id_singular_matrix = "Octave:singular-matrix"
static

Definition at line 54 of file lo-array-errwarn.cc.

Referenced by warn_singular_matrix().