Changeset 3342 for branches/cache/cppad/local/rev_hes_sweep.hpp
 Timestamp:
 Sep 19, 2014 8:22:05 AM (6 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

branches/cache/cppad/local/rev_hes_sweep.hpp
r3334 r3342 46 46 is the number of independent variables on the tape. 47 47 48 \param num var48 \param num_var 49 49 is the total number of variables on the tape; i.e., 50 50 \a play>num_var_rec(). … … 66 66 67 67 \param for_jac_sparse 68 For i = 0 , ... , \a num var  1,68 For i = 0 , ... , \a num_var  1, 69 69 (for all the variables on the tape), 70 70 the forward Jacobian sparsity pattern for the variable with index i … … 73 73 \param RevJac 74 74 \b Input: 75 For i = 0, ... , \a num var  175 For i = 0, ... , \a num_var  1 76 76 the if the variable with index i on the tape is an dependent variable and 77 77 included in the Hessian, \a RevJac[ i ] is equal to true, … … 87 87 \n 88 88 \n 89 \b Input: For i = 0 , ... , \a num var  189 \b Input: For i = 0 , ... , \a num_var  1 90 90 the reverse Hessian sparsity pattern for the variable with index i is empty. 91 91 \n … … 102 102 void RevHesSweep( 103 103 size_t n, 104 size_t num var,104 size_t num_var, 105 105 player<Base> *play, 106 106 Vector_set& for_jac_sparse, // should be const … … 120 120 size_t i, j, k; 121 121 122 // check num var argument123 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 );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 ); 127 127 128 128 // upper limit exclusive for set elements … … 796 796 op, 797 797 arg, 798 num_var, 798 799 cache2var 799 800 );
Note: See TracChangeset
for help on using the changeset viewer.