Mercurial > hg > octave-lyh
comparison liboctave/dNDArray.cc @ 5387:5b00a8beb504
[project @ 2005-06-14 17:13:45 by jwe]
author | jwe |
---|---|
date | Tue, 14 Jun 2005 17:13:45 +0000 |
parents | 4c8a2e4e0717 |
children | 25c8956d2204 |
comparison
equal
deleted
inserted
replaced
5386:f64ec7b38586 | 5387:5b00a8beb504 |
---|---|
587 | 587 |
588 for (octave_idx_type i = 0; i < nel; i++) | 588 for (octave_idx_type i = 0; i < nel; i++) |
589 { | 589 { |
590 double val = elem (i); | 590 double val = elem (i); |
591 | 591 |
592 if (val > FLT_MAX || val < FLT_MIN) | 592 if (! (octave_is_NaN_or_NA (val) || xisinf (val)) |
593 && fabs (val) > FLT_MAX) | |
593 return true; | 594 return true; |
594 } | 595 } |
595 | 596 |
596 return false; | 597 return false; |
597 } | 598 } |