Changeset 2893 for trunk/test_more


Ignore:
Timestamp:
Aug 13, 2013 1:35:21 PM (6 years ago)
Author:
bradbell
Message:

Missing from previous commit.
cond_exp.cpp: supress checking for nans (expect them).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test_more/cond_exp.cpp

    r2506 r2893  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-13 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    493493
    494494        // compute derivative of y[0]
     495        f.check_for_nan(false);
    495496        w[0] = 1.;
    496497        dw   = f.Reverse(1, w);
     
    503504                {       // in this case computing dw[j] ends up multiplying
    504505                        // -infinity * zero and hence results in Nan
     506                        ok &= CppAD::isnan(dw[j]);
    505507                }
    506508        }
Note: See TracChangeset for help on using the changeset viewer.