Mercurial > octave
comparison liboctave/util/lo-array-errwarn.h @ 29230:6b3faa844395
Set API tags in files in liboctave/util (patch #8919).
Add API tag to template class definitions. Add API tag to (un-defined) functions
and member functions in headers. Export template class instantiations and
template functions from .cc files.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 29 Dec 2020 17:58:57 +0100 |
parents | 9a965fec21c1 |
children | 7854d5752dd2 |
comparison
equal
deleted
inserted
replaced
29229:ed5eacd5c3ed | 29230:6b3faa844395 |
---|---|
94 std::string m_index; | 94 std::string m_index; |
95 | 95 |
96 protected: | 96 protected: |
97 | 97 |
98 // Show what's wrong, e.g., A(-1,_), A(0+1i). | 98 // Show what's wrong, e.g., A(-1,_), A(0+1i). |
99 std::string expression (void) const; | 99 OCTAVE_API std::string expression (void) const; |
100 | 100 |
101 // Number of dimensions of indexed object. | 101 // Number of dimensions of indexed object. |
102 octave_idx_type m_nd; | 102 octave_idx_type m_nd; |
103 | 103 |
104 // Dimension number in which invalid index occurred. | 104 // Dimension number in which invalid index occurred. |
106 | 106 |
107 // Name of variable being indexed. | 107 // Name of variable being indexed. |
108 std::string m_var; | 108 std::string m_var; |
109 }; | 109 }; |
110 | 110 |
111 OCTAVE_NORETURN OCTAVE_API extern void | 111 OCTAVE_NORETURN extern OCTAVE_API void |
112 err_nan_to_logical_conversion (void); | 112 err_nan_to_logical_conversion (void); |
113 | 113 |
114 OCTAVE_NORETURN OCTAVE_API extern void | 114 OCTAVE_NORETURN extern OCTAVE_API void |
115 err_nan_to_character_conversion (void); | 115 err_nan_to_character_conversion (void); |
116 | 116 |
117 OCTAVE_NORETURN OCTAVE_API extern void | 117 OCTAVE_NORETURN extern OCTAVE_API void |
118 err_nonconformant (const char *op, octave_idx_type op1_len, | 118 err_nonconformant (const char *op, octave_idx_type op1_len, |
119 octave_idx_type op2_len); | 119 octave_idx_type op2_len); |
120 | 120 |
121 OCTAVE_NORETURN OCTAVE_API extern void | 121 OCTAVE_NORETURN extern OCTAVE_API void |
122 err_nonconformant (const char *op, | 122 err_nonconformant (const char *op, |
123 octave_idx_type op1_nr, octave_idx_type op1_nc, | 123 octave_idx_type op1_nr, octave_idx_type op1_nc, |
124 octave_idx_type op2_nr, octave_idx_type op2_nc); | 124 octave_idx_type op2_nr, octave_idx_type op2_nc); |
125 | 125 |
126 OCTAVE_NORETURN OCTAVE_API extern void | 126 OCTAVE_NORETURN extern OCTAVE_API void |
127 err_nonconformant (const char *op, | 127 err_nonconformant (const char *op, |
128 const dim_vector& op1_dims, const dim_vector& op2_dims); | 128 const dim_vector& op1_dims, const dim_vector& op2_dims); |
129 | 129 |
130 OCTAVE_NORETURN OCTAVE_API extern void | 130 OCTAVE_NORETURN extern OCTAVE_API void |
131 err_index_out_of_range (int ndims, int dim, octave_idx_type idx, | 131 err_index_out_of_range (int ndims, int dim, octave_idx_type idx, |
132 octave_idx_type ext, const dim_vector& dv); | 132 octave_idx_type ext, const dim_vector& dv); |
133 | 133 |
134 OCTAVE_DEPRECATED (6, "use err_index_out_of_range (int, int, octave_idx_type, octave_idx_type, const dim_vector&) instead") | 134 OCTAVE_DEPRECATED (6, "use err_index_out_of_range (int, int, octave_idx_type, octave_idx_type, const dim_vector&) instead") |
135 OCTAVE_NORETURN OCTAVE_API extern void | 135 OCTAVE_NORETURN extern OCTAVE_API void |
136 err_index_out_of_range (int ndims, int dim, octave_idx_type idx, | 136 err_index_out_of_range (int ndims, int dim, octave_idx_type idx, |
137 octave_idx_type ext); | 137 octave_idx_type ext); |
138 | 138 |
139 OCTAVE_NORETURN OCTAVE_API extern void | 139 OCTAVE_NORETURN extern OCTAVE_API void |
140 err_del_index_out_of_range (bool is1d, octave_idx_type iext, | 140 err_del_index_out_of_range (bool is1d, octave_idx_type iext, |
141 octave_idx_type ext); | 141 octave_idx_type ext); |
142 | 142 |
143 OCTAVE_NORETURN OCTAVE_API extern void | 143 OCTAVE_NORETURN extern OCTAVE_API void |
144 err_invalid_index (double n, octave_idx_type nd = 0, | 144 err_invalid_index (double n, octave_idx_type nd = 0, |
145 octave_idx_type dim = 0, | 145 octave_idx_type dim = 0, |
146 const std::string& var = ""); | 146 const std::string& var = ""); |
147 | 147 |
148 OCTAVE_NORETURN OCTAVE_API extern void | 148 OCTAVE_NORETURN extern OCTAVE_API void |
149 err_invalid_index (octave_idx_type n, octave_idx_type nd = 0, | 149 err_invalid_index (octave_idx_type n, octave_idx_type nd = 0, |
150 octave_idx_type dim = 0, | 150 octave_idx_type dim = 0, |
151 const std::string& var = ""); | 151 const std::string& var = ""); |
152 | 152 |
153 OCTAVE_NORETURN OCTAVE_API extern void | 153 OCTAVE_NORETURN extern OCTAVE_API void |
154 err_invalid_index (const std::string& idx, octave_idx_type nd = 0, | 154 err_invalid_index (const std::string& idx, octave_idx_type nd = 0, |
155 octave_idx_type dim = 0, | 155 octave_idx_type dim = 0, |
156 const std::string& var = ""); | 156 const std::string& var = ""); |
157 | 157 |
158 OCTAVE_NORETURN OCTAVE_API extern void | 158 OCTAVE_NORETURN extern OCTAVE_API void |
159 err_invalid_resize (void); | 159 err_invalid_resize (void); |
160 | 160 |
161 OCTAVE_API extern void | 161 extern OCTAVE_API void |
162 warn_singular_matrix (double rcond = 0.0); | 162 warn_singular_matrix (double rcond = 0.0); |
163 } | 163 } |
164 | 164 |
165 #endif | 165 #endif |