GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
lo-array-gripes.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2000-2018 John W. Eaton
4 
5 This file is part of Octave.
6 
7 Octave is free software: you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <https://www.gnu.org/licenses/>.
20 
21 */
22 
23 // FIXME: All gripe_XXX functions deprecated in 4.2. Remove file in
24 // version 5.
25 
26 #if ! defined (octave_lo_array_gripes_h)
27 #define octave_lo_array_gripes_h 1
28 
29 #include "octave-config.h"
30 
31 #include "lo-array-errwarn.h"
32 #include "dim-vector.h"
33 #include "quit.h"
34 
35 OCTAVE_DEPRECATED (4.2, "use 'octave::err_nan_to_logical_conversion' instead")
36 OCTAVE_NORETURN OCTAVE_API extern void
38 
39 OCTAVE_DEPRECATED (4.2, "use 'octave::err_nan_to_character_conversion' instead")
40 OCTAVE_NORETURN OCTAVE_API extern void
42 
43 OCTAVE_DEPRECATED (4.2, "use 'octave::err_nonconformant' instead")
44 OCTAVE_NORETURN OCTAVE_API extern void
45 gripe_nonconformant (const char *op,
46  octave_idx_type op1_len,
47  octave_idx_type op2_len);
48 
49 OCTAVE_DEPRECATED (4.2, "use 'octave::err_nonconformant' instead")
50 OCTAVE_NORETURN OCTAVE_API extern void
51 gripe_nonconformant (const char *op,
52  octave_idx_type op1_nr, octave_idx_type op1_nc,
53  octave_idx_type op2_nr, octave_idx_type op2_nc);
54 
55 OCTAVE_DEPRECATED (4.2, "use 'octave::err_nonconformant' instead")
56 OCTAVE_NORETURN OCTAVE_API extern void
57 gripe_nonconformant (const char *op, const dim_vector& op1_dims,
58  const dim_vector& op2_dims);
59 
60 OCTAVE_DEPRECATED (4.2, "use 'octave::err_index_out_of_range' instead")
61 OCTAVE_NORETURN OCTAVE_API extern void
62 gripe_index_out_of_range (int nd, int dim,
64  const dim_vector& d);
65 
66 OCTAVE_DEPRECATED (4.2, "use 'octave::err_index_out_of_range' instead")
67 OCTAVE_NORETURN OCTAVE_API extern void
68 gripe_index_out_of_range (int nd, int dim,
70 
71 OCTAVE_DEPRECATED (4.2, "use 'octave::err_del_index_out_of_range' instead")
72 OCTAVE_NORETURN OCTAVE_API extern void
74  octave_idx_type ext);
75 
76 OCTAVE_DEPRECATED (4.2, "use 'octave::err_invalid_index' instead")
77 OCTAVE_NORETURN OCTAVE_API extern void
78 gripe_invalid_index (double, octave_idx_type nd = 0,
79  octave_idx_type dim = 0,
80  const std::string& var = "");
81 
82 OCTAVE_DEPRECATED (4.2, "use 'octave::err_invalid_index' instead")
83 OCTAVE_NORETURN OCTAVE_API extern void
85  octave_idx_type dim = 0,
86  const std::string& var = "");
87 
88 OCTAVE_DEPRECATED (4.2, "use 'octave::err_invalid_index' instead")
89 OCTAVE_NORETURN OCTAVE_API extern void
90 gripe_invalid_index (const std::string& idx, octave_idx_type nd = 0,
91  octave_idx_type dim = 0,
92  const std::string& var = "");
93 
94 OCTAVE_DEPRECATED (4.2, "use 'octave::err_invalid_resize' instead")
95 OCTAVE_NORETURN OCTAVE_API extern void
97 
98 OCTAVE_DEPRECATED (4.2, "use 'octave::err_singular_matrix' instead")
99 OCTAVE_API extern void
100 gripe_singular_matrix (double rcond = 0.0);
101 
102 #endif
OCTAVE_NORETURN OCTAVE_API void gripe_nan_to_logical_conversion(void)
static void err_index_out_of_range(void)
Definition: idx-vector.cc:51
OCTAVE_NORETURN OCTAVE_API void gripe_invalid_index(double, octave_idx_type nd=0, octave_idx_type dim=0, const std::string &var="")
void err_invalid_index(const std::string &idx, octave_idx_type nd, octave_idx_type dim, const std::string &)
STL namespace.
var
Definition: givens.cc:88
OCTAVE_NORETURN OCTAVE_API void gripe_nonconformant(const char *op, octave_idx_type op1_len, octave_idx_type op2_len)
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
OCTAVE_API void gripe_singular_matrix(double rcond=0.0)
void err_del_index_out_of_range(bool is1d, octave_idx_type idx, octave_idx_type ext)
OCTAVE_NORETURN OCTAVE_API void gripe_invalid_resize(void)
void err_nonconformant(const char *op, octave_idx_type op1_len, octave_idx_type op2_len)
OCTAVE_NORETURN OCTAVE_API void gripe_index_out_of_range(int nd, int dim, octave_idx_type iext, octave_idx_type ext, const dim_vector &d)
void err_invalid_resize(void)
OCTAVE_NORETURN OCTAVE_API void gripe_del_index_out_of_range(bool is1d, octave_idx_type iext, octave_idx_type ext)
OCTAVE_NORETURN OCTAVE_API void gripe_nan_to_character_conversion(void)
void err_nan_to_character_conversion(void)
Vector representing the dimensions (size) of an Array.
Definition: dim-vector.h:87