Changeset 1468 for trunk/test_more


Ignore:
Timestamp:
Jul 29, 2009 11:46:21 AM (11 years ago)
Author:
bradbell
Message:

trunk: Working on conditional expression sparsity pattern operators.

cond_exp_ad.cpp: because new sparsity pattern independent of variable values.
prototype_op.hpp: remove unecessary Input comments, include CExpOp operations.
for_jac_sweep.hpp: use new routine for conditional expressions.
cond_op.hpp: use common documentation, add sparsity routine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test_more/cond_exp_ad.cpp

    r1370 r1468  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-07 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-09 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    300300        for(i = 0; i < m; i++)
    301301        {       for(j = 0; j < n; j++)
    302                         ok &= ( Py[i * n + j] == (J[i * n + j] == 1.) );
     302                        // sparsity pattern works for both true and false cases.
     303                        ok &= ( Py[i * n + j] == (j > 0) );
    303304        }
    304305
Note: See TracChangeset for help on using the changeset viewer.