Changeset 1596 for trunk/test_more


Ignore:
Timestamp:
Dec 1, 2009 9:55:18 AM (10 years ago)
Author:
bradbell
Message:

trunk: Use struct for information about each variable during optimization.

optimize.cpp: improve comments about conditional expression optimization.
cond_exp.hpp: fix gramma in user documentation for conditional expressions.
optimize.hpp: Use struct instead of separate vectors for data structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test_more/optimize.cpp

    r1595 r1596  
    6060                opt      += 1;
    6161
    62                 // a conditional expression that will be optimized out
     62                // this conditional expression that will be optimized out
    6363                a = CppAD::CondExpLt(x[0], x[1], x[2], x[3]);
     64                // 1 of the following 2 conditional expressions will be kept
    6465                if( a < 5. )
    6566                        y[4] = CppAD::CondExpLt(x[4], one, two, three);
Note: See TracChangeset for help on using the changeset viewer.