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_hes_sweep.hpp

    r3334 r3342  
    4646is the number of independent variables on the tape.
    4747
    48 \param numvar
     48\param num_var
    4949is the total number of variables on the tape; i.e.,
    5050\a play->num_var_rec().
     
    6666
    6767\param for_jac_sparse
    68 For i = 0 , ... , \a numvar - 1,
     68For i = 0 , ... , \a num_var - 1,
    6969(for all the variables on the tape),
    7070the forward Jacobian sparsity pattern for the variable with index i
     
    7373\param RevJac
    7474\b Input:
    75 For i = 0, ... , \a numvar - 1
     75For i = 0, ... , \a num_var - 1
    7676the if the variable with index i on the tape is an dependent variable and
    7777included in the Hessian, \a RevJac[ i ] is equal to true,
     
    8787\n
    8888\n
    89 \b Input: For i = 0 , ... , \a numvar - 1 
     89\b Input: For i = 0 , ... , \a num_var - 1 
    9090the reverse Hessian sparsity pattern for the variable with index i is empty.
    9191\n
     
    102102void RevHesSweep(
    103103        size_t                n,
    104         size_t                numvar,
     104        size_t                num_var,
    105105        player<Base>         *play,
    106106        Vector_set&           for_jac_sparse, // should be const
     
    120120        size_t             i, j, k;
    121121
    122         // check numvar argument
    123         CPPAD_ASSERT_UNKNOWN( play->num_var_rec()     == numvar );
    124         CPPAD_ASSERT_UNKNOWN( for_jac_sparse.n_set() == numvar );
    125         CPPAD_ASSERT_UNKNOWN( rev_hes_sparse.n_set() == numvar );
    126         CPPAD_ASSERT_UNKNOWN( numvar > 0 );
     122        // check num_var argument
     123        CPPAD_ASSERT_UNKNOWN( play->num_var_rec()     == num_var );
     124        CPPAD_ASSERT_UNKNOWN( for_jac_sparse.n_set() == num_var );
     125        CPPAD_ASSERT_UNKNOWN( rev_hes_sparse.n_set() == num_var );
     126        CPPAD_ASSERT_UNKNOWN( num_var > 0 );
    127127
    128128        // upper limit exclusive for set elements
     
    796796                        op,
    797797                        arg,
     798                        num_var,
    798799                        cache2var
    799800                );
Note: See TracChangeset for help on using the changeset viewer.