Ignore:
Timestamp:
Sep 19, 2014 8:22:05 AM (6 years ago)
Author:
bradbell
Message:
  1. Zero order forward mode trace is correct, but results not getteing back

to function object; i.e. y and y_cache different.

  1. Change numvar to num_var in reverse mode sweep functions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cache/cppad/local/rev_jac_sweep.hpp

    r3334 r3342  
    7272is the number of independent variables on the tape.
    7373
    74 \param numvar
     74\param num_var
    7575is the total number of variables on the tape; i.e.,
    7676\a play->num_var_rec().
     
    9191
    9292\param var_sparsity
    93 For i = 0 , ... , \a numvar - 1,
     93For i = 0 , ... , \a num_var - 1,
    9494(all the variables on the tape)
    9595the forward Jacobian sparsity pattern for variable i
     
    9898\b
    9999\b Input:
    100 For i = 0 , ... , \a numvar - 1,
     100For i = 0 , ... , \a num_var - 1,
    101101the forward Jacobian sparsity pattern for variable i is an input
    102102if i corresponds to a dependent variable.
     
    113113        bool                  nz_compare,
    114114        size_t                n,
    115         size_t                numvar,
     115        size_t                num_var,
    116116        player<Base>         *play,
    117117        Vector_set&           var_sparsity
     
    129129        const size_t num_par = play->num_par_rec();
    130130
    131         // check numvar argument
    132         CPPAD_ASSERT_UNKNOWN( numvar > 0 );
    133         CPPAD_ASSERT_UNKNOWN( play->num_var_rec()   == numvar );
    134         CPPAD_ASSERT_UNKNOWN( var_sparsity.n_set() == numvar );
     131        // check num_var argument
     132        CPPAD_ASSERT_UNKNOWN( num_var > 0 );
     133        CPPAD_ASSERT_UNKNOWN( play->num_var_rec()   == num_var );
     134        CPPAD_ASSERT_UNKNOWN( var_sparsity.n_set() == num_var );
    135135
    136136        // upper limit (exclusive) for elements in the set
     
    722722                        op,
    723723                        arg,
     724                        num_var,
    724725                        cache2var
    725726                );
Note: See TracChangeset for help on using the changeset viewer.