Mercurial > hg > octave-nkf
comparison liboctave/Array-util.h @ 11130:7c573eb981eb
consistently give error for operator not applied to NaN values
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 21 Oct 2010 16:12:13 -0400 |
parents | 0de5cc44e690 |
children | fd0a3ac60b0e |
comparison
equal
deleted
inserted
replaced
11129:0de5cc44e690 | 11130:7c573eb981eb |
---|---|
21 */ | 21 */ |
22 | 22 |
23 #if !defined (octave_Array_util_h) | 23 #if !defined (octave_Array_util_h) |
24 #define octave_Array_util_h 1 | 24 #define octave_Array_util_h 1 |
25 | 25 |
26 #include <cassert> | |
27 | |
28 #include "Array.h" | 26 #include "Array.h" |
29 #include "dim-vector.h" | 27 #include "dim-vector.h" |
30 #include "idx-vector.h" | 28 #include "idx-vector.h" |
31 #include "lo-error.h" | 29 #include "lo-array-gripes.h" |
32 | 30 |
33 extern OCTAVE_API bool index_in_bounds (const Array<octave_idx_type>& ra_idx, | 31 extern OCTAVE_API bool index_in_bounds (const Array<octave_idx_type>& ra_idx, |
34 const dim_vector& dimensions); | 32 const dim_vector& dimensions); |
35 | 33 |
36 extern OCTAVE_API void increment_index (Array<octave_idx_type>& ra_idx, | 34 extern OCTAVE_API void increment_index (Array<octave_idx_type>& ra_idx, |
102 octave_idx_type iidx; | 100 octave_idx_type iidx; |
103 }; | 101 }; |
104 | 102 |
105 extern int OCTAVE_API permute_vector_compare (const void *a, const void *b); | 103 extern int OCTAVE_API permute_vector_compare (const void *a, const void *b); |
106 | 104 |
107 extern OCTAVE_API const char *error_id_nonconformant_args; | |
108 | |
109 extern OCTAVE_API const char *error_id_index_out_of_bounds; | |
110 | |
111 extern OCTAVE_API const char *error_id_invalid_index; | |
112 | |
113 extern void OCTAVE_API gripe_nan_to_logical_conversion (void); | |
114 | |
115 extern void OCTAVE_API gripe_nan_to_character_conversion (void); | |
116 | |
117 extern void OCTAVE_API gripe_nonconformant (const char *op, int op1_len, int op2_len); | |
118 | |
119 extern void OCTAVE_API gripe_nonconformant (const char *op, int op1_nr, int op1_nc, | |
120 int op2_nr, int op2_nc); | |
121 | |
122 | |
123 extern void OCTAVE_API gripe_nonconformant (const char *op, const dim_vector& op1_dims, | |
124 const dim_vector& op2_dims); | |
125 | |
126 extern void OCTAVE_API gripe_index_out_of_range (int nd, int dim, | |
127 octave_idx_type iext, octave_idx_type ext); | |
128 | |
129 extern void OCTAVE_API gripe_del_index_out_of_range (bool is1d, octave_idx_type iext, | |
130 octave_idx_type ext); | |
131 | |
132 extern void OCTAVE_API gripe_invalid_index (void); | |
133 | |
134 extern void OCTAVE_API gripe_invalid_resize (void); | |
135 | |
136 extern void OCTAVE_API gripe_invalid_assignment_size (void); | |
137 | |
138 extern void OCTAVE_API gripe_assignment_dimension_mismatch (void); | |
139 | |
140 #endif | 105 #endif |