Changeset 3784 for trunk/test_more


Ignore:
Timestamp:
Jan 22, 2016 5:46:29 AM (4 years ago)
Author:
bradbell
Message:

merge to branch: trunk
from repository: https://github.com/coin-or/CppAD
start hash code: 08d0cfc73520f8d330289da641b81d557128d048
end hash code: c4559d5e01e1b0f09943490dd84449557eced25d

commit c4559d5e01e1b0f09943490dd84449557eced25d
Author: Brad Bell <bradbell@…>
Date: Thu Jan 21 15:27:44 2016 -0700

checkpoint.cpp: fix initialization error in test (found by valgrind).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test_more/checkpoint.cpp

    r3718 r3784  
    1 /* $Id$ */
     1// $Id$
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-15 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-16 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    8383                // compare reverse mode results
    8484                CPPAD_TESTVECTOR(double) w(m*(p+1)), dw_not(n*(p+1)), dw_yes(n*(p+1));
     85                for(i = 0; i < m; i++)
     86                {       for(k = 0; k <= p; k++)
     87                                w[ i * (p+1) + k ] = 2.0 / (p + 1 - k );
     88                }
    8589                dw_not = check_not.Reverse(p+1, w);
    8690                dw_yes = check_yes.Reverse(p+1, w);
Note: See TracChangeset for help on using the changeset viewer.