Mercurial > jwe > octave
comparison libinterp/octave-value/ov-flt-re-mat.cc @ 21120:499b851fbfae
Replace pattern if/err_XXX/else/code with if/err_XXX/ code.
* schur.cc, ov-complex.h, ov-cx-mat.cc, ov-cx-sparse.cc, ov-float.h,
ov-flt-complex.h, ov-flt-cx-mat.cc, ov-flt-re-mat.cc, ov-range.cc,
ov-re-mat.cc, ov-re-sparse.cc, ov-scalar.h, ov-str-mat.cc, ops.h, pt-idx.cc,
Array.cc, CColVector.cc, CMatrix.cc, CRowVector.cc, MSparse.cc, PermMatrix.cc,
Sparse.cc, dColVector.cc, dMatrix.cc, dRowVector.cc, dSparse.cc,
fCColVector.cc, fCMatrix.cc, fCRowVector.cc, fColVector.cc, fMatrix.cc,
fRowVector.cc:
Replace pattern if/err_XXX/else/code with if/err_XXX/ code.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 20 Jan 2016 16:58:59 -0800 |
parents | 3ac9f47fb04b |
children | 95f8c8cdbffe |
comparison
equal
deleted
inserted
replaced
21119:90cd0f9442d5 | 21120:499b851fbfae |
---|---|
203 boolNDArray | 203 boolNDArray |
204 octave_float_matrix::bool_array_value (bool warn) const | 204 octave_float_matrix::bool_array_value (bool warn) const |
205 { | 205 { |
206 if (matrix.any_element_is_nan ()) | 206 if (matrix.any_element_is_nan ()) |
207 err_nan_to_logical_conversion (); | 207 err_nan_to_logical_conversion (); |
208 else if (warn && matrix.any_element_not_one_or_zero ()) | 208 if (warn && matrix.any_element_not_one_or_zero ()) |
209 warn_logical_conversion (); | 209 warn_logical_conversion (); |
210 | 210 |
211 return boolNDArray (matrix); | 211 return boolNDArray (matrix); |
212 } | 212 } |
213 | 213 |