Mercurial > octave-nkf
comparison liboctave/CMatrix.cc @ 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 | 3622db30ff05 |
children | 5ea2644b0111 |
comparison
equal
deleted
inserted
replaced
11129:0de5cc44e690 | 11130:7c573eb981eb |
---|---|
3042 // unary operations | 3042 // unary operations |
3043 | 3043 |
3044 boolMatrix | 3044 boolMatrix |
3045 ComplexMatrix::operator ! (void) const | 3045 ComplexMatrix::operator ! (void) const |
3046 { | 3046 { |
3047 if (any_element_is_nan ()) | |
3048 gripe_nan_to_logical_conversion (); | |
3049 | |
3047 return do_mx_unary_op<bool, Complex> (*this, mx_inline_not); | 3050 return do_mx_unary_op<bool, Complex> (*this, mx_inline_not); |
3048 } | 3051 } |
3049 | 3052 |
3050 // other operations | 3053 // other operations |
3051 | 3054 |