comparison liboctave/Array-util.cc @ 7922:935be827eaf8

error for NaN values in & and | expressions
author John W. Eaton <jwe@octave.org>
date Fri, 11 Jul 2008 14:56:30 -0400
parents 9a4541c622b5
children 4976f66d469b
comparison
equal deleted inserted replaced
7921:fcc70f30fe31 7922:935be827eaf8
478 const permute_vector *pvb = static_cast<const permute_vector *> (b); 478 const permute_vector *pvb = static_cast<const permute_vector *> (b);
479 479
480 return pva->pidx > pvb->pidx; 480 return pva->pidx > pvb->pidx;
481 } 481 }
482 482
483 void
484 gripe_nan_to_logical_conversion (void)
485 {
486 (*current_liboctave_error_handler) ("invalid conversion of NaN to logical");
487 }
483 488
484 void 489 void
485 gripe_nonconformant (const char *op, int op1_len, int op2_len) 490 gripe_nonconformant (const char *op, int op1_len, int op2_len)
486 { 491 {
487 (*current_liboctave_error_handler) 492 (*current_liboctave_error_handler)